path | title |
---|---|
/learnings/javascript_cool_snippets |
Learning Javascript Cool Snippets |
let a = ['jun', 'junk', 'thing one', 'thing two']
let [,, ...goodThings] = a
console.log(goodThings) // will be ['thing one', 'thing two']
path | title |
---|---|
/learnings/javascript_cool_snippets |
Learning Javascript Cool Snippets |
let a = ['jun', 'junk', 'thing one', 'thing two']
let [,, ...goodThings] = a
console.log(goodThings) // will be ['thing one', 'thing two']