3 lines
124 B
JavaScript
3 lines
124 B
JavaScript
const bind = (fn, context, ...boundArgs) => (...args) => fn.apply(context, [...boundArgs, ...args]);
|
|
module.exports = bind;
|