UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

12 lines (9 loc) 292 B
import { zip as zip$1 } from '../../array/zip.mjs'; import { isArrayLikeObject } from '../predicate/isArrayLikeObject.mjs'; function zip(...arrays) { if (!arrays.length) { return []; } return zip$1(...arrays.filter(group => isArrayLikeObject(group))); } export { zip };