Skip to content

Commit c4ed22b

Browse files
committed
Merge pull request #7 from viatropos/patch-1
use slice ref
2 parents c868e0d + 798c01b commit c4ed22b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/**
32
* Slice reference.
43
*/
@@ -17,7 +16,7 @@ var slice = [].slice;
1716
module.exports = function(obj, fn){
1817
if ('string' == typeof fn) fn = obj[fn];
1918
if ('function' != typeof fn) throw new Error('bind() requires a function');
20-
var args = [].slice.call(arguments, 2);
19+
var args = slice.call(arguments, 2);
2120
return function(){
2221
return fn.apply(obj, args.concat(slice.call(arguments)));
2322
}

0 commit comments

Comments
 (0)