ES8 allows the use of trailing commas in function parameter lists and calls, which is useful especially when using version control since no unnecessary editing…
Read more1 min
1 min
ES8 allows the use of trailing commas in function parameter lists and calls, which is useful especially when using version control since no unnecessary editing…
Read more5 mins
Object.values returns an array of a given object’s own enumerable property values, in the same order as that provided by a for…in loop (the difference…
Read more3 mins
padStart() pads the current string with another string (repeated, if needed) so that the resulting string reaches the given length. The padding is applied from…
Read more6 mins
Async functions are built on top of Promises. They can contain an await expression that pauses the execution of the async function and waits for…
Read more2 mins
The exponentiation operator has the same purpose as Math.pow(). It accepts base on its left-hand side and exponent on its right-hand side and returns the…
Read more2 mins
Array.prototype.includes() determines whether an array includes a certain value, returning true or false as appropriate. See the Pen thecodelog.com – ES7 Array Methods 1 by…
Read more4 mins
There has been several Number static methods added. Number.isNaN() determines whether the passed value is NaN and its type is Number. It is a more…
Read more7 mins
There has been several Object static methods added. Object.is() determines whether two values are the same value without coercion and returns a boolean value. In…
Read more2 mins
The WeakMap object is a collection of key/value pairs in which the keys are weakly referenced. The keys must be objects and the values can…
Read more4 mins
The Map object holds key-value pairs. Any value (both objects and primitive values) may be used as either a key or a value. See the…
Read more