Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stefanwimmer128/function.js
[Deprecated] Use fn6.js instead
https://github.com/stefanwimmer128/function.js
Last synced: 2 days ago
JSON representation
[Deprecated] Use fn6.js instead
- Host: GitHub
- URL: https://github.com/stefanwimmer128/function.js
- Owner: stefanwimmer128
- License: isc
- Created: 2016-07-12T15:33:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-12T15:36:51.000Z (over 8 years ago)
- Last Synced: 2024-12-10T00:46:52.992Z (29 days ago)
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# function.js
Functional programming just easier - for npm and bower
## How to use?
### Using npm
``` bash
npm i -S function.js
`````` javascript
const fn = require("function.js");
```### Using bower
``` bash
bower i -S function.js
`````` html
```
### Start coding
``` javascript
const sum = (a, b, c, d) => a + b + c + d;const curried = fn.curry(sum);
const uncurried = fn.uncurry(curried);curried(1)(2)(3)(4); // 10
uncurried(1, 2, 3, 4); // 10
```Complete documentation can be found [here](https://github.com/stefanwimmer128/function.js/blob/master/docs/fn.md).