Open allenwb opened 9 years ago
Agreed.
If you can short-circuit my research on this, are there any exceptions (like some methods that are not, or some TypedArray's that don't)?
The only methods excluded from Array.prototype of those that change the length of the array: concat, pop, push, shift, splice, unshift
all methods are available on all typed arrays
Thanks!
clarification: concat(..)
isn't a mutator, so it's safe, right? Does it get on the TypedArray prototypes?
right concat isn't a mutator, but it was also excluded because it would be hard to reliably precompute the fixed size of the result typed array object.
Another feature point is the availability of from and of on the typed array constructors.
Looks good, I might also test for 'sort' just because it is one of the more interesting methods and requires more implementation work than just moving over the Array.prototype method
thanks!
To test that the specified Array.prototype methods have been made available on %TypedArray%.prototyipe