Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 531 Bytes

learning_javascript_cool_snippets.md

File metadata and controls

17 lines (12 loc) · 531 Bytes
path title
/learnings/javascript_cool_snippets
Learning Javascript Cool Snippets

Table Of Contents

Dropping the first couple elements from an array then keeping the rest

    let a = ['jun', 'junk', 'thing one', 'thing two']
    let [,, ...goodThings] = a
    console.log(goodThings)  // will be ['thing one', 'thing two']