Unicode normalization problem
monolithed
monolithed at gmail.com
Wed Apr 1 18:58:56 UTC 2015
```js
var text = 'ЙйЁё';
text.split(''); // ["И", "̆", "и", "̆", "Е", "̈", "е", "̈"]
```
Possible solutions:
1.
```js
text.normalize().split('') // ["Й", "й", "Ё", "ё"]
```
I like it, but is no so comfortable
2.
```js
Array.from(text) // ["И", "̆", "и", "̆", "Е", "̈", "е", "̈"]
```
3.
```js
[...text] // ["И", "̆", "и", "̆", "Е", "̈", "е", "̈"]
```
Should the `Array.from` and `...text` work as the first example and why?
[Test example](http://jsbin.com/baguhiguja/1/edit?js,output)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150401/b3ed8af4/attachment.html>
More information about the es-discuss
mailing list