Skip to content
loading...

re: Modern JavaScript, 10 things you should be using, starting today VIEW POST

FULL DISCUSSION
 

Nice rundown of our new ES6 sugar :)
On the array remainder example I'm guessing there is a little typo:

const array = [1,2,3,4,5,6];
const [a, ,c, ...remaining];

I'm guessing should be

const array = [1,2,3,4,5,6];
const [a, ,c, ...remaining] = array;

Tack och hej :)

code of conduct - report abuse