News for hackers. Stuff that matters.
Re:Introducing "Functional JavaScript" by jcampbell1 on Wednesday March 20, 2013 @11:47AM (#5407954)
Be my guest. Start using this implementation of each. Let me know if you run into any problems.

   function each(arr,fn,pos) {
	pos = pos || 0;
	fn(arr[pos++])
	if(pos < arr.length)
	   each(arr,fn,pos);
   }
Seems like a recipe for a disaster.
Re:Introducing "Functional JavaScript" by fogus on Wednesday March 20, 2013 @12:05PM (#5408101)
I prefer Underscore's implementation of `each`. It doesn't blow the stack. http://underscorejs.org/docs/underscore.html#section-13