diff --git a/lib/fp/mapping.js b/lib/fp/mapping.js index a30bf9349..98c03e99e 100644 --- a/lib/fp/mapping.js +++ b/lib/fp/mapping.js @@ -156,6 +156,7 @@ module.exports = { 'matchesProperty': true, 'random': true, 'range': true, + 'zip': true, 'zipObject': true } }; diff --git a/test/test.fp.js b/test/test.fp.js index b121ac0b1..4980439be 100644 --- a/test/test.fp.js +++ b/test/test.fp.js @@ -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'); (function() {