mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Loosen _.matches to match objects with inherited properties. [closes #1067]
This commit is contained in:
@@ -9634,7 +9634,7 @@
|
||||
objects = [{ 'a': 1 }, { 'a': 1, 'b': 1 }, { 'a': 1, 'b': undefined }],
|
||||
actual = _.map(objects, matches);
|
||||
|
||||
deepEqual(actual, [true, false, true]);
|
||||
deepEqual(actual, [false, false, true]);
|
||||
|
||||
matches = _.matchesProperty('a', { 'b': undefined });
|
||||
objects = [{ 'a': { 'a': 1 } }, { 'a': { 'a': 1, 'b': 1 } }, { 'a': { 'a': 1, 'b': undefined } }];
|
||||
|
||||
Reference in New Issue
Block a user