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!
- Host: GitHub
- URL: https://github.com/codewell/or
- Owner: codewell
- License: mit
- Created: 2019-12-02T15:45:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T02:08:54.000Z (over 3 years ago)
- Last Synced: 2025-11-12T13:33:11.891Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.03 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.