New JavaScript features in ES2019:
Array#{flat,flatMap}
Object.fromEntries
String#{trimStart,trimEnd}
Symbol#description
try { } catch {} // optional binding
JSON ⊂ ECMAScript
well-formed JSON.stringify
stable Array#sort
revised Function#toString
-
Show this thread
-
Replying to @mathias
I have to ask. Is there a reason that flat and flatMap methods are defined JUST on the Array prototype? Considering that JS actually has iterators now, wouldn't it make more sense to make those functions support any iterable?
2 replies 0 retweets 4 likes
Replying to @ArtSolopov
I’ll let @smooshMap answer this one :)
5:53 AM - 30 Jan 2019
0 replies
0 retweets
0 likes
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.