Const
Removes duplicate items. Example:
distinct(array, (a, b) => a.name === b.name); Copy
distinct(array, (a, b) => a.name === b.name);
The array to check for duplicates.
Optional
Optional compare function.
A new array without duplicates.
Generated using TypeDoc
Removes duplicate items. Example: