Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        


fp-or


A tiny 'or' function for functional programming.




Build Status


Coverage Status


Known Vulnerabilities

## 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];
```