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

This method on typed arrays

Open zloirock opened this issue 4 years ago • 5 comments

Makes it sense or not?

zloirock avatar Nov 24 '20 09:11 zloirock

TypedArrays are used to store binary-like data, it is not representing a list of items in the thinking model so I think it is strange to support this on those.

Jack-Works avatar Jan 29 '21 10:01 Jack-Works

@Jack-Works they are just optimized for numbers arrays. Sometimes we have arrays of numbers and we should get unique values from those arrays. I think that makes no sense to limit this possibility.

zloirock avatar Jan 29 '21 10:01 zloirock

IIRC typed arrays don't have .map, .filter etc, maybe that reason applies here

Jack-Works avatar Jan 29 '21 13:01 Jack-Works

They have those methods.

zloirock avatar Jan 29 '21 13:01 zloirock

Oh so we should match them

Jack-Works avatar Jan 29 '21 13:01 Jack-Works