Review
ES6 adds many extra API helpers on the various built-in native objects:
Array
addsof(..)
andfrom(..)
static functions, as well as prototype functions likecopyWithin(..)
andfill(..)
.Object
adds static functions likeis(..)
andassign(..)
.Math
adds static functions likeacosh(..)
andclz32(..)
.Number
adds static properties likeNumber.EPSILON
, as well as static functions likeNumber.isFinite(..)
.String
adds static functions likeString.fromCodePoint(..)
andString.raw(..)
, as well as prototype functions likerepeat(..)
andincludes(..)
.
Most of these additions can be polyfilled (see ES6 Shim), and were inspired by utilities in common JS libraries/frameworks.