> Providing It was syntactically correct
Providing arr is iterable (e.g. an array) it's perfectly valid js. Your linter might scream at you to add braces and a semicolon, but neither is needed for correctness here.
Re:What’s New in ES2019
by jacobwilliamroy on Tuesday July 30, 2019 @09:10AM
(#20564460)
Nope. I meant arr.map(e=>b) .
I try to reimplement pointless code, I get more pointless code.
The arr.map providing you had a variable on the left side would output the result of each iteration into said array ( so an array containing all b values - however I guess you meant arr.map(e => e)