Open
Description
Question about https://github.com/TechQuery/array-unique-proposal#core-features:
While
Array.prototype.unique()
invoked with:
no parameter, it'll work as
[...new Set(array)]
;one index-key parameter (
Number
,String
orSymbol
), it'll get values from each array element with the key, and then deduplicates the origin array based on these values;one function parameter, it'll call this function for each array element, and then deduplicates the origin array based on these returned values.
How is 2 different from 3?