mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Ensure correct param order in fp.zip.
This commit is contained in:
@@ -156,6 +156,7 @@ module.exports = {
|
|||||||
'matchesProperty': true,
|
'matchesProperty': true,
|
||||||
'random': true,
|
'random': true,
|
||||||
'range': true,
|
'range': true,
|
||||||
|
'zip': true,
|
||||||
'zipObject': true
|
'zipObject': true
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -555,6 +555,18 @@ QUnit.module('fp.uniqBy');
|
|||||||
|
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
QUnit.module('fp.zip');
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
QUnit.test('should zip together two arrays', function(assert) {
|
||||||
|
assert.expect(1);
|
||||||
|
|
||||||
|
assert.deepEqual(fp.zip([1, 2], [3, 4]), [[1, 3], [2, 4]]);
|
||||||
|
});
|
||||||
|
}());
|
||||||
|
|
||||||
|
/*----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
QUnit.module('fp.zipObject');
|
QUnit.module('fp.zipObject');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user