Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moeriki/node-fp-or
A tiny 'or' function for functional programming.
https://github.com/moeriki/node-fp-or
Last synced: 7 days ago
JSON representation
A tiny 'or' function for functional programming.
- Host: GitHub
- URL: https://github.com/moeriki/node-fp-or
- Owner: moeriki
- License: mit
- Created: 2017-01-03T10:04:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-23T12:38:32.000Z (over 5 years ago)
- Last Synced: 2024-12-21T23:36:11.409Z (19 days ago)
- Language: JavaScript
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
fp-or
A tiny 'or' function for functional programming.
## Install
```
$ npm install --save fp-or
```## Usage
```javascript
const or = require('fp-or');const result = [0, 1, 0, 2, 0, 3].map(or(5));
// result = [5, 1, 5, 2, 5, 3];
```