Entries by ILJS

,

ES6: Spread Operator

The spread syntax allows arrays, objects and array like objects (e.g. arguments object, DOM node objects) to be expanded in places where multiple arguments (for function calls) are expected.

,

ES6: Default Parameters

Default paramters in a function are preset parameters, which are used when no arguments are provided in the function call that overwrites them. ES6 provides us now with a very simple and intuitive way to declare them.