Returns all the distinct values of an array
distinct([1, 2, 2, 3, 4, 4, 5]); // [1,2,3,4,5]
distinct([{foo:{bar:[0,1]}}, {foo:{bar:[4,1]}}], "foo.bar[1]"); // [{foo:{bar:[0,1]}}]
distinct([1, 2, 2.2, 3, 4.9, 4, 5], Math.floor); // [1,2,3,4.9,5]
Optional
Generated using TypeDoc
Returns all the distinct values of an array
Example
Example
Example