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

https://github.com/codewell/or

If any condition is true, its true!
https://github.com/codewell/or

Last synced: 1 day ago
JSON representation

If any condition is true, its true!

Awesome Lists containing this project

README

          

# @codewell/or

## Installation

```
npm install @codewell/or
```

## Basic Usage

```JavaScript
import or from '@codewell/or';

or(true, false); // => true
or(true, true); // => true
or(false, false); // => false

or(); // => null
or(1); // => 1
or('foo'); // => 'foo'
or(undefined, null 'foo'); // => 'foo'
```

## Contribution

Please help by posting issues, or opening a pull request here on github.