mathiasbynens / Array.from

A robust & optimized ES3-compatible polyfill for the `Array.from` method in ECMAScript 6.

Home Page:https://mths.be/array-from

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Astral symbols breaking. Is that expected? [question]

revelt opened this issue · comments

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?

Duplicate of #4.

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