proposal-array-unique icon indicating copy to clipboard operation
proposal-array-unique copied to clipboard

ECMAScript proposal for Deduplicating method of Array

Results 13 proposal-array-unique issues
Sort by recently updated
recently updated
newest added

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...

question

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...

enhancement

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...