Iterable zipping functions for JavaScript. See docs.
⚠️ Depending on your environment, the code may requireregeneratorRuntime
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- ...