Ensure _.method aligns with _.invoke.

This commit is contained in:
jdalton
2015-04-07 00:18:17 -07:00
parent cc0b8e9d10
commit a129a2509f
2 changed files with 8 additions and 11 deletions

View File

@@ -6882,7 +6882,7 @@
});
test('should not error on elements with missing properties', 1, function() {
var objects = _.map(falsey.concat(_.constant(1)), function(value) {
var objects = _.map([null, undefined, _.constant(1)], function(value) {
return { 'a': value };
});