mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Ensure _.pickBy doesn’t treat keys with dots as deep paths. [closes #2808]
This commit is contained in:
@@ -17640,6 +17640,15 @@
|
||||
|
||||
assert.deepEqual(actual, { 'a': 1, 'c': 3 });
|
||||
});
|
||||
|
||||
QUnit.test('should not treat keys with dots as deep paths', function(assert) {
|
||||
assert.expect(1);
|
||||
|
||||
var object = { 'a.b.c': 1 },
|
||||
actual = _.pickBy(object, stubTrue);
|
||||
|
||||
assert.deepEqual(actual, { 'a.b.c': 1 });
|
||||
});
|
||||
}());
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user