Skip to content

Multiselect.preventDuplicates method

Multiselect › preventDuplicates

Unofficial

Prevent duplicates in the multiselect.

Signature:

preventDuplicates(findDuplicate: (value: string, values: string[]) => number): this

Parameters:

Parameter Type Description
findDuplicate (value: string, values: string[]) => number the function to find a duplicate.

Returns: thisthe multiselect.