Skip to content

iterable-iterator/zip

Repository files navigation

Iterable zipping functions for JavaScript. See docs.

⚠️ Depending on your environment, the code may require regeneratorRuntime to be defined, for instance by importing regenerator-runtime/runtime.

import {zip} from '@iterable-iterator/zip';
zip("ABC" , "XY") ; // AX BY
zip(count( 0 , 1 ) , "ABC") ; // 0A 1B 2C

import {enumerate} from '@iterable-iterator/zip';
enumerate("ABC") ; // 0A 1B 2C

import {ziplongest} from '@iterable-iterator/zip';
ziplongest('-', count( 0 , 1 ) , "ABC") ; // 0A 1B 2C 3- 4- ...

License Version Tests Dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size