JavaScript frameworks.

JavaScript frameworks.

Based on questions to Stack Overflow.

https://insights.stackoverflow.com/trends?utm_source=so-owned&utm_medium=blog&utm_campaign=trends&utm_content=blog-link&tags=angularjs%2Cangular%2Creactjs%2Cvue.js

Clearly there’s a big move away from AngularJS (Angular 1.x) but a fair amount of that is going toward React as well as Angular 4.

Somehow I didn’t know that you can use bind as a built in way to do partial function application in JavaScript.

Somehow I didn’t know that you can use bind as a built in way to do partial function application in JavaScript.

var add = function (a, b) {

return a + b;

};

var add5 = add.bind(null, 5);

add5(10) === 15;

The first arg is commonly used to bind the function “this” variable. What I didn’t realise was that subsequent args get prepended as arguments to the bound function.