# functional-fns

> Functional utils for your functional needs.

Latest version **0.0.7** (published 2021-07-22) · ISC license · 0 weekly downloads

## Install

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

## 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.0.7 |
| Published | 2021-07-22 |
| First published | 2021-07-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Maximillian Einstein |
| Maintainers | maxeinstein |
| Keywords | utils, functional, typescript |

## Links

- npm: https://www.npmjs.com/package/functional-fns
- Repository: https://github.com/meinstein/functional-fns
- Homepage: https://github.com/meinstein/functional-fns#readme
- Issues: https://github.com/meinstein/functional-fns/issues
- npm.io page: https://npm.io/package/functional-fns

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.7 (latest) — 2021-07-22
- 0.0.5 — 2021-07-22
- 0.0.3 — 2021-07-22
- 0.0.2 — 2021-07-22
- 0.0.1 — 2021-07-22

## README

# functional-fns

Functional utils for your functional needs.

## **filter fns**

### _remove_

```js
import remove from 'functional-fns/filter/remove'

const res = ['foo', 'bar', 'baz'].filter(remove(1))
console.log(res) // ['foo', 'baz']
```

## **map fns**

### _swap_

```js
import swap from 'functional-fns/map/swap'

const res = ['foo', 'bar', 'baz'].map(swap(1, 2))
console.log(res) // ['foo', 'baz', 'bar']
```

## **reduce fns**

### _insert_

```js
import insert from 'functional-fns/reduce/insert'

const res = ['foo', 'bar', 'baz'].reduce(...insert('foo', 1))
console.log(res) // ['foo', 'foo', 'bar', 'baz']
```

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