Add fp.zipAll.

This commit is contained in:
John-David Dalton
2016-07-10 16:25:29 -07:00
parent 8bc44e3bff
commit 8cb5455671
2 changed files with 17 additions and 3 deletions

View File

@@ -2234,6 +2234,18 @@
/*--------------------------------------------------------------------------*/
QUnit.module('fp.zipAll');
(function() {
QUnit.test('should zip together an array of arrays', function(assert) {
assert.expect(1);
assert.deepEqual(fp.zipAll([[1, 2], [3, 4], [5, 6]]), [[1, 3, 5], [2, 4, 6]]);
});
}());
/*--------------------------------------------------------------------------*/
QUnit.module('fp.zipObject');
(function() {