# functional-augments

> Augment collection prototypes with methods for functional programming, including filter(), map() and reduce().

Latest version **1.0.0** (published 2018-02-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install functional-augments
pnpm add functional-augments
yarn add functional-augments
bun add functional-augments
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-02-28 |
| First published | 2018-02-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 0 |
| Unpacked size | 22.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel A.C. Martin |
| Maintainers | daniel-ac-martin |
| Keywords | augment, augmentation, Map, Object, Set, String, filter, map, reduce, Map.filter, Map.map, Map.reduce, Object.filter, Object.map, Object.reduce, Set.filter, Set.map, Set.reduce, String.filter, String.map, String.reduce |

## Links

- npm: https://www.npmjs.com/package/functional-augments
- Repository: https://github.com/daniel-ac-martin/functional-augments
- Homepage: https://github.com/daniel-ac-martin/functional-augments#readme
- Issues: https://github.com/daniel-ac-martin/functional-augments/issues
- npm.io page: https://npm.io/package/functional-augments

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-02-28

## README

Functional Augments for ES6 objects
===================================
[![Build Status][ci-badge]][ci]

This package augments the prototypes of the following collections in ES6 with
methods for functional programming similar to Arrays:

* Map
* Object
* Set
* String

Currently the following methods are provided:

* filter()
* map()
* reduce()

Functions provided to methods on keyed collections take an optional third
parameter for the key.


Installation
------------

```bash
$ npm install --save functional-augments
```


Usage
-----

```js
'use strict';

require('functional-augments');

const object = {
  one: 1,
  two: 2,
  three: 3
};

const reduction = object.reduce((acc, v) => acc + v);

console.log(reduction); // 6
```

[ci]: https://travis-ci.org/daniel-ac-martin/functional-augments
[ci-badge]: https://travis-ci.org/daniel-ac-martin/functional-augments.svg?branch=master

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