mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
upport deep paths as keys in _.zipObject.
This commit is contained in:
committed by
John-David Dalton
parent
b36e659c56
commit
53702774d0
@@ -21236,6 +21236,13 @@
|
||||
assert.deepEqual(actual, expected);
|
||||
});
|
||||
|
||||
QUnit.test('should support deep paths', function(assert) {
|
||||
assert.expect(1);
|
||||
|
||||
var actual = _.zipObject(['a.b.c'], [1]);
|
||||
assert.deepEqual(actual, { 'a': { 'b': { 'c': 1 } } });
|
||||
});
|
||||
|
||||
QUnit.test('should support consuming the return value of `_.pairs`', function(assert) {
|
||||
assert.expect(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user