Closed mathiasbynens closed 10 years ago
Other issues I see:
Array.from
as per spec, doesn't produce sparse arrays any more. So e.g. this test should fail, as now expected value is { 0: undefined, length: 1 }
Symbol
shim inside, so not easy, if you'd like to keep it as light deps free function. However you can fix internally resolution of strings, as I did -> https://github.com/medikoo/es5-ext/blob/master/array/from/shim.js#L65-L85This is now implemented correctly.
As reported by @medikoo here: https://github.com/mathiasbynens/Array.from/commit/0e41b310b65605461d8a6c2f7e0d3e494368f861#commitcomment-6175170