In Javascript, how can I bind arguments to a function without binding the this parameter?
this
For example:
//Example function. var c = funct
Using LoDash you can use the _.partial function.
_.partial
const f = function (a, b, c, callback) {} const pf = _.partial(f, 1, 2, 3) // f has first 3 arguments bound. pf(function () {}) // callback.