Geeks With Blogs
Liam McLennan
In C# and Ruby we can use the Where() and Select() methods to select elements from a collection by testing each element with a predicate (method that returns a boolean). Unfortunately, javascript does not have this capability. Here is the code to add a where() method to the javascript array class...

Read the full article


Posted on Tuesday, June 23, 2009 12:42 AM | Back to top

Copyright © Liam McLennan | Powered by: