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 @ManuelBieh
Would love to know why something as fundamental as string trim has taken this long to be implemented... it can’t be complexity as regex alread existed.
1 reply 0 retweets 1 like
Replying to @Lloyd9944 @ManuelBieh
Actually, String#{trimLeft,trimRight} have been supported for a long time, although they were previously non-standard. This proposal standardizes them as aliases to String#{trimStart/trimEnd}.
5:57 AM - 30 Jan 2019
0 replies
0 retweets
3 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.