mathiasbynens / Array.from

A robust & optimized ES3-compatible polyfill for the `Array.from` method in ECMAScript 6.
https://mths.be/array-from
MIT License
67 stars 15 forks source link

Astral symbols breaking. Is that expected? [question] #29

Closed revelt closed 8 years ago

revelt commented 8 years ago

I'm working on a new library and I need a way to split a string by character into an array, considering Astral symbols. I was expecting this library to work, as it claims to be equivalent to ES6. But, it's not:

screen shot 2016-08-11 at 13 53 07 https://tonicdev.com/57ac7398a55ecf1200fa1a05/57ac7398a55ecf1200fa1a06

Real Array.from recognises Astral symbols fine while this library does not. Am I missing something here?

mathiasbynens commented 8 years ago

Duplicate of #4.

revelt commented 8 years ago

Aha! Thanks and sorry for nuisance 😄 I found array-from on npm does support Astral symbols although it's ES5< so not exact competition