Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do you think Array.prototype.push() also has limited applications? It too mutates the source array, but must be the most commonly used Array method there is. And the two combined make for a lovely FIFO.

Anyone is certainly free to use Array.prototype.slice() if they want a view.



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

Search: