3 ms·
Function#bind isn't the greatest solution, since it forces you to set 'this' and only allows left-to-right, flat application. Many people have written partial
by jrajav 14y ago
Function#bind isn't the greatest solution, since it forces you to set 'this' and only allows left-to-right, flat application.
Many people have written partial application libs to make it easier to work with (I even have one of my own on github). A good one is substack's: https://github.com/substack/node-ap https://github.com/substack/node-ap