Skip to content

Instantly share code, notes, and snippets.

@iddan
Created March 12, 2018 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iddan/e293f84dbb35a23a20459a36ae40c187 to your computer and use it in GitHub Desktop.
Save iddan/e293f84dbb35a23a20459a36ae40c187 to your computer and use it in GitHub Desktop.
ES Ideas I want to propose / like

Array Update

Acts like objects but uses indeces as keys

const array = [ 1, 2, 3 ]
const newArray = [...array, 4: 5 ]

Iterable & Mapping Literals

Acts like template functions

const set = Set [ 1, 2, 3 ]
const map = Map { 1: 2, 3: 4, 5: 6 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment