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