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
-
-
Yann Renaudin Retweeted Mathias Bynens
I thought it was already using TimSort https://twitter.com/mathias/status/1036626116654637057?lang=en … ?
Yann Renaudin added,
Mathias BynensVerified account @mathiasArray.prototype.sort is now stable in@v8js v7.0 / Chrome 70!
Previously, V8 used an unstable QuickSort for arrays with more than 10 elements. Now, we use the stable TimSort algorithm.
Demo: https://mathiasbynens.be/demo/sort-stability … pic.twitter.com/zrynE48VcpShow this thread1 reply 0 retweets 0 likes
Replying to @YannRenaudin @rauschma
V8 uses TimSort indeed, but that’s an implementation detail. What matters to JS developers is that the sort is now stable.
3:51 PM - 29 Jan 2019
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.