Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Functional Javascript (osteele.com)
12 points by brett on Sept 28, 2007 | hide | past | favorite | 1 comment


> map('x*x', [1,2,3,4])

Although it's longer, I think I prefer:

map([1,2,3,4], function (num){

return num + 1;

});

.. which is how our in-house functional javascript library does it.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: