# @strong-roots-capital/zip

> Stitch together two arrays by like-index

Latest version **1.0.0** (published 2019-05-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install @strong-roots-capital/zip
pnpm add @strong-roots-capital/zip
yarn add @strong-roots-capital/zip
bun add @strong-roots-capital/zip
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-05-09 |
| First published | 2019-05-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Eric Crosson |
| Maintainers | amchelle, hamroctopus |
| Keywords | zip, array |

## Links

- npm: https://www.npmjs.com/package/@strong-roots-capital/zip
- Repository: https://github.com/strong-roots-capital/zip
- Issues: https://github.com/strong-roots-capital/zip/issues
- npm.io page: https://npm.io/package/@strong-roots-capital/zip

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-05-09

## README

# zip [![Build status](https://travis-ci.org/strong-roots-capital/zip.svg?branch=master)](https://travis-ci.org/strong-roots-capital/zip) [![npm version](https://img.shields.io/npm/v/@strong-roots-capital/zip.svg)](https://npmjs.org/package/@strong-roots-capital/zip) [![codecov](https://codecov.io/gh/strong-roots-capital/zip/branch/master/graph/badge.svg)](https://codecov.io/gh/strong-roots-capital/zip)

> Stitch together two arrays by like-index

Why yet-another `zip`?

I needed a `zip` that

- doesn't modify `Array` prototype
- is strongly-typed
- supports currying

## Install

```shell
npm install @strong-roots-capital/zip
```

## Use

```typescript
import zip from '@strong-roots-capital/zip'

/* Basic use */
const a = [1, 2, 3]
const b = ['a', 'b', 'c']
console.log(zip(a, b))
//=>[ [ 1, 'a' ], [ 2, 'b' ], [ 3, 'c' ] ]

const zipWithA = zip(a.reverse())
console.log(zipWithA(b))
//=>[ [ 3, 'a' ], [ 2, 'b' ], [ 1, 'c' ] ]
```

## Related

- [small-array-zip](https://github.com/Olian04/small-array-zip)

---
_Source: https://npm.io/package/@strong-roots-capital/zip · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
