Astral symbols breaking. Is that expected? [question]
revelt opened this issue · 2 comments
revelt commented
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:
https://tonicdev.com/57ac7398a55ecf1200fa1a05/57ac7398a55ecf1200fa1a06
Real Array.from
recognises Astral symbols fine while this library does not. Am I missing something here?
mathiasbynens commented
Duplicate of #4.
revelt commented
Aha! Thanks and sorry for nuisance 😄
I found array-from
on npm does support Astral symbols although it's ES5< so not exact competition