I have some code that sets the first parameter of the function and another piece of code that sets the second parameter. After the second parameter is set, I need to return a callback function eventually (with the two params set).
var f = function(a,b) { return a-b; }
var g = _.partial(f, 5);
g(1); // gives 4
var h = _.bind(g, 1); // I want to return h
h(); // but calling h() gives NaN. I was expecting 4