_.sortBy should not error on nullish elements when sorting by multiple properties.

This commit is contained in:
John-David Dalton
2014-08-20 01:24:33 -07:00
parent df3540b0f9
commit 1423dcb619
2 changed files with 6 additions and 1 deletions

View File

@@ -5656,7 +5656,7 @@
criteria = Array(length);
while (length--) {
criteria[length] = value[iteratee[length]];
criteria[length] = value == null ? undefined : value[iteratee[length]];
}
} else {
criteria = iteratee(value, key, collection);