Re:ECMAScript 2017 Language Specification
by Rotten194 on Tuesday July 11, 2017 @12:39PM
(#14745620)
isn't that hideously inefficient? you're making a new object each iteration.
[ Parent
| on HN ]
But purity.
it's very unlikely this is going to be the bottleneck in your application
Re:ECMAScript 2017 Language Specification
by mintplant on Tuesday July 11, 2017 @02:53PM
(#14746926)
I wouldn't be so quick to write that off as a performance concern. Creating tons of unnecessary objects is JavaScript's equivalent to programming without regard for cache locality at a lower level, due to the way the JITs work.
It's very unlikely you'll get any benefit from doing it the inefficient way either. Does eslint not support "ignore this part" comments?