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