Get rid of arguments for bindKey
This commit is contained in:
@ -1,5 +1,2 @@
|
||||
const bindKey = (context, fn, ...args) =>
|
||||
function() {
|
||||
return context[fn].apply(context, args.concat(...arguments));
|
||||
};
|
||||
const bindKey = (context, fn, ...boundArgs) => (...args) => context[fn].apply(context, [...boundArgs, ...args]);
|
||||
module.exports = bindKey;
|
||||
|
||||
Reference in New Issue
Block a user