# 3h-iter

> An iteration lib.

Latest version **0.9.1** (published 2024-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install 3h-iter
pnpm add 3h-iter
yarn add 3h-iter
bun add 3h-iter
```

## Health

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

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.9.1 |
| Published | 2024-01-24 |
| First published | 2020-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 66.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | 3h |
| Maintainers | 3h |
| Keywords | iter, iteration, iterator, 3h |

## Links

- npm: https://www.npmjs.com/package/3h-iter
- Repository: https://github.com/huang2002/3h-iter
- Homepage: https://github.com/huang2002/3h-iter#readme
- Issues: https://github.com/huang2002/3h-iter/issues
- npm.io page: https://npm.io/package/3h-iter

## Recent versions

- 0.9.1 (latest) — 2024-01-24
- 0.9.0 — 2024-01-24
- 0.8.0 — 2024-01-22
- 0.7.0 — 2023-09-09
- 0.6.0 — 2023-09-05
- 0.5.0 — 2023-09-05
- 0.4.0 — 2020-09-14
- 0.3.0 — 2020-09-12
- 0.2.0 — 2020-09-08
- 0.1.0 — 2020-09-04

## README

# 3h-iter

> An iterator lib.

## Introduction

`3h-iter` is an iterator library that provides useful iterator-related helpers,
such as `map`, `range`, `chain`, `zip` and so on.
It is recommanded to use `3h-iter` with ES2015+ syntax.

## Example Usage

```js
import { range, zip } from '3h-iter';

for (const i of range(5)) {
    console.log(i);
}
// Prints 0 through 4 in console.

const numbers = [0, 1, 2];
const strings = ['a', 'b', 'c'];
for (const tuple of zip(numbers, strings)) {
    console.log(tuple);
}
// Prints the following tuples:
// [ 0, 'a' ]
// [ 1, 'b' ]
// [ 2, 'c' ]
```

## Links

- [API Reference](https://github.com/huang2002/3h-iter/wiki)
- [Changelog](./CHANGELOG.md)
- [License (MIT)](./LICENSE)

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