Hacker News new | past | comments | ask | show | jobs | submit login

Definitely. Thankfully, ES6 will introduce

    "🍣".codePointAt(0)
and iterators will iterate code points, not code units.

    for (var c of "🍣"){}



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: