MENU
ECMAScript 2015 (ES6)
Major new features:
'let', 'const'
modules, ie. export/import
destructuring assignment
for...of loops
arrow functions
function default parameters, and rest parameter
generators
Promise
'class'
Symbol
template literal
spread operator ...
typed arrays
Set and WeakSet
Map and WeakMap
iterables and iterators
Proxy and Reflect
Minor new features:
HTML-style comments
Object.assign(), Object.is(), Object.getOwnPropertySymbols(), Object.setPrototypeOf()
'new.target'
Number.isNaN(), Number.isFinite(), Number.isSafeInteger(), Number.EPSILON, Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER
str.fromCodePoint(), string.startsWith(), str.endsWith(), str.includes(), str.repeat(), str.normalize(), str.codePointAt()
Array.from(), Array.of(), arr.find(), arr.findIndex(), arr.fill(), arr.keys(), arr.values(), arr.entries(), arr.copyWithin()
Math.sign(), Math.trunc(), Math.cbrt()
RegExp 'y' and 'u' flags
Intl