An open API service indexing awesome lists of open source software.

https://github.com/yurkimus/functions

JavaScript-oriented utilities for functional programming
https://github.com/yurkimus/functions

deno functional-programming javascript node utilities

Last synced: 7 months ago
JSON representation

JavaScript-oriented utilities for functional programming

Awesome Lists containing this project

README

          

# Functions

JavaScript-oriented utilities for functional programming.

Functions with arity more than 1 are curried.

## Table of Contents

- [Installation](#installation)
- [Requirements](#requirements)
- [Exports](#exports)
- [always](#always)
- [apply](#apply)
- [asynchronous](#asynchronous)
- [construct](#construct)
- [defer](#defer)
- [effect](#effect)
- [has](#has)
- [identity](#identity)
- [partial](#partial)
- [prop](#prop)
- [License](#license)

## Installation

### npm

```
npm install @yurkimus/functions
```

### urls

```
"@yurkimus/functions": "npm:@yurkimus/functions"
```

```
"@yurkimus/functions": "github:yurkimus/functions"
```

```
"@yurkimus/functions": "https://raw.githubusercontent.com/yurkimus/functions/main/source/index.js"
```

## Requirements

Modules:

- [@yurkimus/curry](https://github.com/yurkimus/curry)
- [@yurkimus/types](https://github.com/yurkimus/types)

Runtime:

- [Array.prototype.at](https://262.ecma-international.org/15.0/index.html#sec-array.prototype.at)
- [Array.prototype.reduce](https://262.ecma-international.org/15.0/index.html#sec-array.prototype.reduce)
- [Array.prototype.slice](https://262.ecma-international.org/15.0/index.html#sec-array.prototype.slice)
- [Array.prototype.[@@iterator]](https://262.ecma-international.org/15.0/index.html#sec-array.prototype-@@iterator)
- [Function.prototype.bind](https://262.ecma-international.org/15.0/index.html#sec-function.prototype.bind)
- [Reflect.construct](https://262.ecma-international.org/15.0/index.html#sec-reflect.construct)
- [Optional chains (?.)](https://262.ecma-international.org/15.0/index.html#sec-optional-chains)

## Exports

### always

#### Definition

```js
```

#### Example

```js
```

### apply

#### Definition

```js
```

#### Example

```js
```

### asynchronous

#### Definition

```js
```

#### Example

```js
```

### construct

#### Definition

```js
```

#### Example

```js
```

### defer

#### Definition

```js
```

#### Example

```js
```

### effect

#### Definition

```js
```

#### Example

```js
```

### has

#### Definition

```js
```

#### Example

```js
```

### identity

#### Definition

```js
```

#### Example

```js
```

### partial

#### Definition

```js
```

#### Example

```js
```

### prop

#### Definition

```js
```

#### Example

```js
```

## License

[MIT](LICENSE)