The Code Log

Code notes and snippets resource for software development concepts

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 more

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 more

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 more

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 more

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 more

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 more

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 more

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 more

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 more

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