Skip to content

Instantly share code, notes, and snippets.

@iddan

iddan/es_ideas.md

Created Mar 12, 2018
Embed
What would you like to do?
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