proposal-array-unique
proposal-array-unique copied to clipboard
ECMAScript proposal for Deduplicating method of Array
As others have pointed out, we already have `[...new Set(array)]` for primitives. So, I think that the question this proposal is addressing can be generalized to, "use something other than...
What `[1, , 2, , , 2, 1].unique()` should return? At least there are three options: 1. Treat empty items as `undefined`, so returns `[1, undefined, 2]`. This matches what...
Hi everyone, I recently came across the `Array.prototype.unique` proposal and noticed that it hasn't progressed to the next stage. I couldn’t find details explaining why, and I’m quite curious about...