News for hackers. Stuff that matters.
Re:What’s New in ES2019 by nullandvoid on Tuesday July 30, 2019 @08:47AM (#20564296)
Providing It was syntactically correct the first call would assign e to a variable b for each iteration ( pretty pointless )

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)

Re:What’s New in ES2019 by wongarsu on Tuesday July 30, 2019 @08:53AM (#20564333)
> 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.