Array utility functions.
- Source:
Methods
-
(static) removeDuplicates(arraynon-null, opt_compareFn) → (non-null) {Array.<T>}
-
Remove duplicate entries from an array. Order N^2, so use with caution.
Parameters:
Name Type Description array
Array.<T> opt_compareFn
function(T, T): boolean= An optional function which will be used to compare items in the array. - Source:
Returns:
- Type
- Array.<T>