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 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']