Easy functional programming in JavaScript with Underscore.js -- part 1
So, you’ve been developing in JavaScript for a while, you’re getting on quite well with your for and while loops, when somebody comes along and tells you you shouldn’t be doing that, that JavaScript is a functional programming language and there’s much better ways to solve most problems that with loops. Whaaa…? Well, that’s what I’m here to tell you anyway.
What is functional programming? Functional programming (FP) is all about the idea of functions as a mapping from one value to another.
skilldrick.co.uk