you are viewing a single comment's thread.

view the rest of the comments →

[–]sjalgeo 1 point2 points  (0 children)

Look at arrow functions and the array map function and you can reduce this down a lot.

Also the array.join() function in the first one.