Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
reassignment because troll
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickJS committed Aug 26, 2014
1 parent 257f5ab commit 28c58f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions invoke.js
Expand Up @@ -6,10 +6,10 @@ var __slice = Array.prototype.slice;
* @param {String} method
* @return {Function}
*/
module.exports = function (method /*, ...args */) {
var args = __slice.call(arguments, 1);
module.exports = function (method, args /* ...args */) {
args = __slice.call(arguments, 1);

return function (obj /*, ..args */) {
return function (obj /*, ...arguments */) {
return obj[method].apply(obj, args.concat(__slice.call(arguments, 1)));
};
};

0 comments on commit 28c58f8

Please sign in to comment.