I'm not sure about the terminology used (I think it's called "lambda" or something like that), so I cannot do a proper search.
The following line in Python:
a, b, c, d, e = [SomeFunc(x) for x in arr]
How can I do the same in Javascript?
I have this to begin with:
let [a, b, c, d, e] = arr;
But I still need to call SomeFunc on every element in arr.
let [a, b, c, d, e] = arr.map(someFunc);