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
-
-
Doesn’t Babel do that for us?
-
Exactly! If you’re using
@babeljs and especially babel/preset-env, you’re good already :)
End of conversation
New conversation -
-
-
V8 is awesome, what about other engines? Are they keeping up?
-
Exactly. How should we 'just use them'? Is it through transpilers?
- 1 more reply
New conversation -
-
-
Aren't Stage 3 features only for devs who are a bit... adventurous? ;) Formally, they can still change, provided critical issues are found. So if you want to use a feature in production, and be fully safe, shouldn't you wait for Stage 4? (and check browser/Babel support?)
-
I mean, technically any feature (even stage 4 features) can change at any point. We made Array#sort stable just yesterday: https://github.com/tc39/ecma262/pull/1340 … From stage 3 onwards, we’ll generally only make smaller, non-breaking changes — not major makeovers that change the entire proposal.
- 1 more reply
New conversation -
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.