# flat-zip

> Concats arrays but does so like a zipper instead of appending them. Like lodash.zip + lodash.flat, plus a length limit

Latest version **1.0.1** (published 2020-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install flat-zip
pnpm add flat-zip
yarn add flat-zip
bun add flat-zip
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-05-06 |
| First published | 2020-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Federico Brigante |
| Maintainers | bfred-it |
| Keywords | concat, zip, alternate, rotate, array, sequence, set, merge, combine, column |

## Links

- npm: https://www.npmjs.com/package/flat-zip
- Repository: https://github.com/fregante/flat-zip
- Homepage: https://github.com/fregante/flat-zip#readme
- Issues: https://github.com/fregante/flat-zip/issues
- npm.io page: https://npm.io/package/flat-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.1 (latest) — 2020-05-06

## README

# flat-zip [![][badge-gzip]][link-bundlephobia]

[badge-gzip]: https://img.shields.io/bundlephobia/minzip/flat-zip.svg?label=gzipped
[link-bundlephobia]: https://bundlephobia.com/result?p=flat-zip

> Concats arrays but does so like a zipper instead of appending them. Like lodash.zip + lodash.flat, plus a length limit

## Install

```sh
npm install flat-zip
```

```js
import {flatZip} from 'flat-zip';
```

```js
const {flatZip} = require('flat-zip');
```

## Usage

```js
flatZip([
	['a', 'b', 'c'],
	['€', '฿'],
	[100, 200, 300, 400, 500],
]);
// -> ['a', '€', 100, 'b', '฿', 200, 'c', 300, 400, 500]
```
With a length limit:
```js
flatZip([
	['a', 'b', 'c'],
	['€', '฿'],
	[100, 200, 300, 400, 500],
], 4);
// -> ['a', '€', 100, 'b']
```

## License

MIT © [Federico Brigante](https://bfred.it)

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