If you're interested in functional programming, you might also want to checkout my second blog which i'm actively working on!!

Monday, November 9, 2009

Advanced Javascript: part 8


After playing around with the forEach method I noticed that sometimes it would be very usefull to be able to stop iterating over the array. So if the function argument returns false the iteration stops.

A good use case was my implementation of the DOM select function:

No comments:

Post a Comment