11 Useful Ways to Make Your ES6+ JavaScript More Concise

Tricks with the Spread Operator and Destructuring Assignment Syntax

Photo by Anete Lūsiņa on Unsplash

Among the many useful features introduced in ES6, few have the power to knock off as many lines of traditional JavaScript code as the and . In ES5, for example, you may have required a dedicated function to…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bret Cameron

Bret Cameron

Writer and developer based in London. On Medium, I write about JavaScript and web development 💻