Ensure _.at and _.pullAt work with falsey array and collection values when keys are provided.

This commit is contained in:
John-David Dalton
2014-10-23 00:41:30 -07:00
parent 1fb92df2e7
commit 2060f3f59a
2 changed files with 25 additions and 1 deletions

View File

@@ -3999,7 +3999,7 @@
* // => [10, 20]
*/
function pullAt(array) {
return basePullAt(array, baseFlatten(arguments, false, false, 1));
return basePullAt(array || [], baseFlatten(arguments, false, false, 1));
}
/**