Latest Article
With all of the excitement around here about the new Array methods in Mozilla Firefox 1.5, I thought the world may find it interesting as well. So as usual, I wrote an article over at WebReference: Mozilla’s New Array Methods. I hope you enjoy it.
Disclaimer: Any viewpoints and opinions expressed in this article are those of Nicholas C. Zakas and do not, in any way, reflect those of my employer, my colleagues, Wrox Publishing, O'Reilly Publishing, or anyone else. I speak only for myself, not for them.
Both comments and pings are currently closed.




One Comment
Thanks for the post. I use JavaScript for online experiments, and I like them to be self-contained. I've been trying to find a way to incorporate some simple statistical calculations without a lot of loops. The following works:
x=0
function Sum(v,i,a) {x+=v}
a=[1,3,4,5]
a.forEach(Sum)
x
answer, 13. Neat.
Now I can do sums of squares, etc. etc.
Jon Baron on August 17th, 2005 at 3:05 pm
Comments are automatically closed after 14 days.