8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
_.bind
1 parent 15b14e1 commit 0442578Copy full SHA for 0442578
lodash.js
@@ -3224,7 +3224,7 @@
3224
}
3225
if (partialArgs.length) {
3226
args = args.length
3227
- ? concat.apply(partialArgs, args)
+ ? partialArgs.concat(slice.call(args))
3228
: partialArgs;
3229
3230
if (this instanceof bound) {
test/test.js
@@ -143,6 +143,14 @@
143
QUnit.module('lodash.bind');
144
145
(function() {
146
+ test('should correctly append array arguments to partially applied 83A1 arguments (test in IE < 9)', function() {
147
+ var args,
148
+ bound = _.bind(function() { args = slice.call(arguments); }, null, 'a');
149
+
150
+ bound(['b'], 'c');
151
+ deepEqual(args, ['a', ['b'], 'c']);
152
+ });
153
154
test('supports lazy bind', function() {
155
var object = {
156
'name': 'moe',
0 commit comments