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.
1 parent 5500925 commit f126f19Copy full SHA for f126f19
underscore.js
@@ -505,7 +505,7 @@
505
var idx = output.length;
506
for (var i = 0, length = getLength(input); i < length; i++) {
507
var value = input[i];
508
- if (isArrayLike(value) && (_.isArray(value) || _.isArguments(value))) {
+ if ((_.isArray(value) || _.isArguments(value)) && isArrayLike(value)) {
509
// Flatten current level of array or arguments object.
510
if (shallow) {
511
var j = 0, len = value.length;
0 commit comments