iterable-iterator/zip

View on GitHub
README.md

Summary

Maintainability
Test Coverage
:zipper_mouth_face: [@iterable-iterator/zip](https://iterable-iterator.github.io/zip)
==

Iterable zipping functions for JavaScript.
See [docs](https://iterable-iterator.github.io/zip/index.html).

> :warning: Depending on your environment, the code may require
> `regeneratorRuntime` to be defined, for instance by importing
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).

```js
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](https://img.shields.io/github/license/iterable-iterator/zip.svg)](https://raw.githubusercontent.com/iterable-iterator/zip/main/LICENSE)
[![Version](https://img.shields.io/npm/v/@iterable-iterator/zip.svg)](https://www.npmjs.org/package/@iterable-iterator/zip)
[![Tests](https://img.shields.io/github/actions/workflow/status/iterable-iterator/zip/ci.yml?branch=main&event=push&label=tests)](https://github.com/iterable-iterator/zip/actions/workflows/ci.yml?query=branch:main)
[![Dependencies](https://img.shields.io/librariesio/github/iterable-iterator/zip.svg)](https://github.com/iterable-iterator/zip/network/dependencies)
[![GitHub issues](https://img.shields.io/github/issues/iterable-iterator/zip.svg)](https://github.com/iterable-iterator/zip/issues)
[![Downloads](https://img.shields.io/npm/dm/@iterable-iterator/zip.svg)](https://www.npmjs.org/package/@iterable-iterator/zip)

[![Code issues](https://img.shields.io/codeclimate/issues/iterable-iterator/zip.svg)](https://codeclimate.com/github/iterable-iterator/zip/issues)
[![Code maintainability](https://img.shields.io/codeclimate/maintainability/iterable-iterator/zip.svg)](https://codeclimate.com/github/iterable-iterator/zip/trends/churn)
[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/iterable-iterator/zip/main.svg)](https://codecov.io/gh/iterable-iterator/zip)
[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/iterable-iterator/zip.svg)](https://codeclimate.com/github/iterable-iterator/zip/trends/technical_debt)
[![Documentation](https://iterable-iterator.github.io/zip/badge.svg)](https://iterable-iterator.github.io/zip/source.html)
[![Package size](https://img.shields.io/bundlephobia/minzip/@iterable-iterator/zip)](https://bundlephobia.com/result?p=@iterable-iterator/zip)