# @dbb/fn

> A small functional programming utility library for Node.js.

Latest version **1.0.3** (published 2016-05-27) · The Unlicense license · 0 weekly downloads

## Install

```sh
npm install @dbb/fn
pnpm add @dbb/fn
yarn add @dbb/fn
bun add @dbb/fn
```

## 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.3 |
| Published | 2016-05-27 |
| First published | 2016-04-12 |
| Weekly downloads | 0 |
| License | The Unlicense |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Pappa |
| Maintainers | dbb |
| Keywords | functional, javascript, node.js |

## Links

- npm: https://www.npmjs.com/package/@dbb/fn
- Repository: https://github.com/DungBeetleBASH/fn
- Homepage: https://github.com/DungBeetleBASH/fn#readme
- Issues: https://github.com/DungBeetleBASH/fn/issues
- npm.io page: https://npm.io/package/@dbb/fn

## Recent versions

- 1.0.3 (latest) — 2016-05-27
- 1.0.2 — 2016-05-24
- 1.0.1 — 2016-04-14
- 1.0.0 — 2016-04-14
- 0.0.3 — 2016-04-13
- 0.0.2 — 2016-04-13
- 0.0.1 — 2016-04-12

## README

# @dbb/fn
A small functional programming utility library for Node.js.

[![Build Status](https://travis-ci.org/DungBeetleBASH/fn.png)](https://travis-ci.org/DungBeetleBASH/fn)
[![npm version](https://badge.fury.io/js/%40dbb%2Ffn.png)](https://badge.fury.io/js/%40dbb%2Ffn)

## Installation

`npm install @dbb/fn`

## Docs

* * *

### compose() 

Performs right to left function composition

**Parameters**

**arguments**: `...Function`

**Returns**: `Function`


### curry(func) 

Create a curried function

**Parameters**

**func**: `Function`

**Returns**: `Function`


### fork(lastly, func1, func2) 

Returns a function for performing a forking/convergence operation

**Parameters**

**lastly**: `Function`

**func1**: `Function`

**func2**: `Function`

**Returns**: `Function`


### partial(func) 

Create a partially applied function

**Parameters**

**func**: `Function`

**arguments**: `...Mixed`

**Returns**: `Function`


### pipe() 

Performs left to right function composition

**Parameters**

**arguments**: `...Function`

**Returns**: `Function`


### previous(arr, index) 

Returns the previous element in an array in a cyclic manner

**Parameters**

**arr**: `Array`

**index**: `Number`

**Returns**: `Mixed`


### next(arr, index) 

Returns the next element in an array in a cyclic manner

**Parameters**

**arr**: `Array`

**index**: `Number`

**Returns**: `Mixed`


### last(arr) 

Returns the last element in an array

**Parameters**

**arr**: `Array`

**Returns**: `Mixed`



* * *

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