DEV Community

Discussion on: Make Your Code Cleaner, Shorter and Easier to Read! ES6 Tips and Tricks.

Collapse
 
vkorotynskyy profile image
Vitaliy Korotynskyy • Edited

Great ES-6 features explanation. I've found typo:

function foo(a, b, c) { console.log(a=${a}, b=${b}, c=${c}}
let data = [5, 15, 2];
foo( ...data); // a=5, b=15, c=2

There is a missing closing bracket of console.log()

Collapse
 
samwsoftware profile image
Sam Williams

Thanks for pointing that out. I hope you enjoyed the post beside the typos