3 ms·
I tend to favor one of these for clarity: Array.prototype.push.bind(accum) [].push.bind(accum) (i realize the latter is wasteful, but arrays are so ch
by ricardobeat 15y ago
I tend to favor one of these for clarity:
Array.prototype.push.bind(accum)
[].push.bind(accum)
(i realize the latter is wasteful, but arrays are so cheap that you wouldn't notice unless in a hot loop)