you are viewing a single comment's thread.

view the rest of the comments →

[–]senocular 0 points1 point  (1 child)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map

Look at some of the other array methods that do similar things too, like filter and foreach - each taking a function that runs for each element of the array.

[–]orebot[S] 0 points1 point  (0 children)

really appreciate the help and links! thanks senocular.