Add shorthand tests for sortBy and over methods.

This commit is contained in:
John-David Dalton
2016-04-11 22:16:12 -07:00
parent 2469af6c3f
commit 201ea9a9f0
2 changed files with 106 additions and 40 deletions

View File

@@ -8999,7 +8999,7 @@
} else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
iteratees = [iteratees[0]];
}
iteratees = (length == 1 && isArray(iteratees[0]))
iteratees = (iteratees.length == 1 && isArray(iteratees[0]))
? iteratees[0]
: baseFlatten(iteratees, 1, isFlattenableIteratee);