# poly-reduce

> Reduce that can be used with objects and arrays

Latest version **0.1.1** (published 2018-12-10) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install poly-reduce
pnpm add poly-reduce
yarn add poly-reduce
bun add poly-reduce
```

## 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.1.1 |
| Published | 2018-12-10 |
| First published | 2018-12-10 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 14.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Machobear Studios Inc. |
| Maintainers | machobearstudio |
| Keywords | reduce, object manipulation, array manipulation, curry, manipulation, poly |

## Links

- npm: https://www.npmjs.com/package/poly-reduce
- Repository: https://github.com/machobearstudio/poly-reduce
- Homepage: https://github.com/machobearstudio/poly-reduce#readme
- Issues: https://github.com/machobearstudio/poly-reduce/issues
- npm.io page: https://npm.io/package/poly-reduce

## Dependencies (1)

- [curry](https://npm.io/package/curry.md) ^1.2.0

## Recent versions

- 0.1.1 (latest) — 2018-12-10
- 0.1.0 — 2018-12-10

## README

# poly-reduce

![https://travis-ci.org/koralarts/poly-reduce.svg?branch=master](https://travis-ci.org/koralarts/poly-reduce.svg?branch=master)

Use reduce with not only Arrays but also with Objects in Javascript.

## Examples

```
var reduce = require('poly-reduce');

var arr = [
  1,
  2,
  3,
  4,
  5
]

function callback(accum, item) {
	return accum + item;
}

reduce(callback, 0, arr); // 15

var = obj {
  one: 1,
  two: 2,
  three: 3,
  four: 4,
  five: 5
}

reduce(callback, 0, obj); // 15
```

## Test
```
npm test
```

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