We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c868e0d + 798c01b commit c4ed22bCopy full SHA for c4ed22b
index.js
@@ -1,4 +1,3 @@
1
-
2
/**
3
* Slice reference.
4
*/
@@ -17,7 +16,7 @@ var slice = [].slice;
17
16
module.exports = function(obj, fn){
18
if ('string' == typeof fn) fn = obj[fn];
19
if ('function' != typeof fn) throw new Error('bind() requires a function');
20
- var args = [].slice.call(arguments, 2);
+ var args = slice.call(arguments, 2);
21
return function(){
22
return fn.apply(obj, args.concat(slice.call(arguments)));
23
}
0 commit comments