# fast-for

> Optimize your collection looping by 2x faster. Fast For uses for loop that runs only half of your collection's length.

Latest version **1.0.2** (published 2022-06-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install fast-for
pnpm add fast-for
yarn add fast-for
bun add fast-for
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-06-03 |
| First published | 2022-06-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Pj Salita |
| Maintainers | pjsalita |
| Keywords | for, loop, fast, optimize, refactor |

## Links

- npm: https://www.npmjs.com/package/fast-for
- Repository: https://github.com/pjsalita/fast-for
- Homepage: https://github.com/pjsalita/fast-for#readme
- Issues: https://github.com/pjsalita/fast-for/issues
- npm.io page: https://npm.io/package/fast-for

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2022-06-03
- 1.0.1 — 2022-06-03
- 1.0.0 — 2022-06-03

## README

fast-for
======

Optimize your collection looping by 2x faster.

[![npm version][npm-image]][npm-url]
[![npm downloads][npm-downloads-image]][npm-url]
![License][license]

## Description

`fast-for` optimizes your collection looping by 2x faster. Fast For uses for loop that runs only half of your collection's length by returning 2 items per loop.

## Install

```console
$ npm install fast-for
```

## Usage

```js
import fastFor from 'fast-for';

const testArray = [...Array(1000).keys()];

fastFor(({ first, second }) => {
  console.log({ first, second }); // this loop will run 500x instead of 1000x
}, testArray);
```

## License

MIT License: Pj Salita &lt;pj.salita@gmail.com&gt;

[npm-image]: https://img.shields.io/npm/v/fast-for.svg
[npm-url]: https://npmjs.org/package/fast-for
[npm-downloads-image]: https://img.shields.io/npm/dm/fast-for.svg
[license]: https://img.shields.io/npm/l/fast-for.svg

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