Ensure _.sortByAll iteratee call guard works when _.partialRight is applied.

This commit is contained in:
John-David Dalton
2015-01-13 01:37:15 -08:00
committed by jdalton
parent c0110c6bab
commit aca07530aa
2 changed files with 9 additions and 3 deletions

View File

@@ -6541,7 +6541,7 @@
*/
function sortByAll(collection) {
var args = arguments;
if (args.length == 4 && isIterateeCall(args[1], args[2], args[3])) {
if (args.length > 3 && isIterateeCall(args[1], args[2], args[3])) {
args = [collection, args[1]];
}
var index = -1,