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
- Host: GitHub
- URL: https://github.com/yurkimus/functions
- Owner: yurkimus
- License: mit
- Created: 2024-07-23T13:50:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-28T22:47:33.000Z (12 months ago)
- Last Synced: 2025-04-10T23:13:30.733Z (7 months ago)
- Topics: deno, functional-programming, javascript, node, utilities
- Language: JavaScript
- Homepage:
- Size: 50.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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)