3 ms·
You're lucky you didn't get voted down -5, with the Type Police out and about. I like ES5 (would be ES6, but for IE support...) Javascript, but it is a bit lig
by Roboprog 10y ago
You're lucky you didn't get voted down -5, with the Type Police out and about.
I like ES5 (would be ES6, but for IE support...) Javascript, but it is a bit light on the immutability aspect, given the environment and problem set it usually runs in.
Check out the "Ramda.js" library for JS (http://ramdajs.com/0.21.0/index.html http://ramdajs.com/0.21.0/index.html). There's some good concepts put to use there. (although I have my own version of "currying" implemented at work, as I like to sometimes have "0 arity" functions for event handlers -- but those types of "functions" aren't particularly "pure")