ES5: 'abc'.split('').map(function (x) { return x.charCodeAt(0) }) ES6: 'abc'.split('').map(x => x.charCodeAt(0)) http://www.2ality.com/2012/04/arrow-functions.html …
Replying to @rauschma
@rauschma What good is an array of code units rather than code points? More useful: `Array.from('abc').map(c => c.codePointAt(0))`.
12:38 AM - 8 Nov 2013
from Dendermonde, België
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.