Skip to content

Multiselect.preventDuplicates method

Multiselect › preventDuplicates

Unofficial

Prevent duplicates in the multiselect.

Signature:

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

Parameters:

ParameterTypeDescription
findDuplicate(value: string, values: string[]) => numberthe function to find a duplicate.

Returns: thisthe multiselect.