Ensure basePullAt works with deep paths.

This commit is contained in:
John-David Dalton
2015-07-19 01:39:16 -07:00
parent 7fdbdae6b9
commit 40409df885
2 changed files with 19 additions and 7 deletions

View File

@@ -12372,9 +12372,10 @@
});
test('should work with a falsey `array` argument when keys are provided', 1, function() {
var expected = _.map(falsey, _.constant(Array(4)));
var values = falsey.slice(),
expected = _.map(values, _.constant(Array(4)));
var actual = _.map(falsey, function(array) {
var actual = _.map(values, function(array) {
try {
return _.pullAt(array, 0, 1, 'pop', 'push');
} catch(e) {}