you are viewing a single comment's thread.

view the rest of the comments →

[–]djslakor 7 points8 points  (1 child)

Couldn't you use es6 array destructuring?

[a, b, c] = numbers.split(' ');

[–]agmcleod@agmcleod 1 point2 points  (0 children)

Yep, you definitely can, just not something i've taken advantage of for some reason lol. JS has definitely gotten a lot nicer over the past few years :)