Multiselect.findDuplicate method
Multiselect › findDuplicate
Unofficial
Find a duplicate in the multiselect.Signature:
findDuplicate(value: string, values: string[]): numberParameters:
| Parameter | Type | Description |
|---|---|---|
| value | string | the value that will be checked for being a duplicate. |
| values | string[] | the values to find a duplicate in. |
Returns: number — the index of value if duplicate, otherwise -1.