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}`
})
)
Written by Douglas Duteil
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Es6
Authors
Related Tags
#es6
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#