Hacker News new | past | comments | ask | show | jobs | submit login

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)



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: