Ranges, summation and predicates

from blog Oliver Caldwell's blog, | ↗ original
I’ve been reading a book called Functional JavaScript by Michael Fogus which, surprisingly, is all about applying functional programming to JavaScript. The majority of the book depends upon Underscore to make JavaScript have a more functional feel, but on the whole it’s fairly vanilla. I have since started trying to apply functional concepts to...