source: node_modules/es-toolkit/dist/compat/array/zip.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 399 bytes
Line 
1'use strict';
2
3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
5const zip$1 = require('../../array/zip.js');
6const isArrayLikeObject = require('../predicate/isArrayLikeObject.js');
7
8function zip(...arrays) {
9 if (!arrays.length) {
10 return [];
11 }
12 return zip$1.zip(...arrays.filter(group => isArrayLikeObject.isArrayLikeObject(group)));
13}
14
15exports.zip = zip;
Note: See TracBrowser for help on using the repository browser.