Skip to content

Multiselect.findDuplicate method

Multiselect › findDuplicate

Unofficial

Find a duplicate in the multiselect.

Signature:

findDuplicate(value: string, values: string[]): number

Parameters:

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: numberthe index of value if duplicate, otherwise -1.