ivmkqa
Last Updated: February 25, 2016
·
131
· douglasduteil

ES6 Code snippets

es6

Here is some ES6 Code snippets I use.
Note that I might update this tip frequently...


// Generate range of object
let todoList = Array.from(
  new Array(5),
  (x,i) => Object({
    id : i,
    title: `Todo ${i}`
  })
)