# into

> Chainable async utilities for collections and arrays

Latest version **0.2.0** (published 2013-11-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install into
pnpm add into
yarn add into
bun add into
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2013-11-25 |
| First published | 2013-11-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Scott Corgan |
| Maintainers | scottcorgan |
| Keywords | chain, async, collection, filter |

## Links

- npm: https://www.npmjs.com/package/into
- Repository: https://github.com/scottcorgan/into
- Issues: https://github.com/scottcorgan/into/issues
- npm.io page: https://npm.io/package/into

## Dependencies (1)

- [async](https://npm.io/package/async.md) ~0.2.9

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 0.2.0 (latest) — 2013-11-25
- 0.1.1 — 2013-11-24
- 0.0.0 — 2013-11-24

## README

# into

Chainable async utilities for collections and arrays.

The backbone of this module is the [async]() module. The problem this is trying to solve is easy chaining of these useful functional methods. This module
also adds a few new methods based off ideas from [lodash](). Lodash is a very useful library, but it doesn't not allow you to perform async iterations.

At the end of each chain, you can add a ` then ` method which is based off of the [Promises/A+]() spec. It is not a real promise, but allows you to
have a ` success ` and ` error ` method passed to it as arguments

## install

```
npm install into --save
```

## Usage

```js
var into = require('into');

var list = [1, 2, 3];

into(list)
  .filter(function (item, next) {
    next(null, item < 3);
  })
  .map(function (item, next) {
    if (item === 1) next(null, 'one');
    if (item === 2) next (null, 'two');
  });
  .then(function (items) {
    // items will equal ['one', 'two'] now
  }, function (err) {
    // Something bad happend
  });
```

## Methods

### Collections

* [where](#whereobject)
* [findWhere](#findwhereobject)
* [pluck](#pluckstring)

### Arrays

* [each](#eachcallback)
* [eachRight](#eachrightcallback)
* [map](#mapcallback)
* [filter](#filtercallback)
* [reject](#rejectcallback)
* [some](#somecallback)
* [every](#everycallback)
* [reduce](#reducememo-callback)
* [reduceRight](#reducerightmemo-callback)
* [sortBy](#sortbycallback)
* [concat](#concatcallback)
 
## Collections

### where(object)

### findWhere(object)

### pluck(string)


## Arrays

### each(callback)

### eachRight(callback)

### map(callback)

### filter(callback)

### reject(callback)

### some(callback)

### every(callback)

### reduce(memo, callback)

### reduceRight(memo, callback)

### sortBy(callback)

### concat(callback)

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