Y
Hacker News
new
|
ask
|
show
|
jobs
by
ricardobeat
5279 days 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)