Last Updated: February 25, 2016
·
275
· douglasduteil

ES6 Code snippets

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}`
  })
)