# fj-or

> x && y

Latest version **1.0.0** (published 2015-01-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install fj-or
pnpm add fj-or
yarn add fj-or
bun add fj-or
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-01-31 |
| First published | 2015-01-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | hemanth |
| Keywords | fp-js, fp-dom, fp, dom, or |

## Links

- npm: https://www.npmjs.com/package/fj-or
- Repository: https://github.com/fp-js/fj-or
- Issues: https://github.com/fp-js/fj-or/issues
- npm.io page: https://npm.io/package/fj-or

## Dependencies (1)

- [fj-curry](https://npm.io/package/fj-curry.md) ^1.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-01-31

## README

# fj-or

[![Build Status](https://travis-ci.org/fp-js/fj-or.svg)](https://travis-ci.org/fp-js/fj-or) [![npm version](https://badge.fury.io/js/fj-or.svg)](http://badge.fury.io/js/fj-or)
> x || y

## Installation

`npm install fj-or --save`

## Usage

```js
var or = require('fj-or');

let T = () => true;
let F = () => false;

or(T, T)()); // => true
or(T)(T)()); // => true
or(T, F)()); // => true
or(F, T)()); // => true
or(F, F)()); // => false
or(F)(F)()); // => false
```


## API

### or

`or(p1, p2)`

***Parameters***

| Name          | Type        | Description                           |
| ------------- | ----------- | --------------------------            |
| p1            | function    | A function that returns true or false |
| p2            | function    | A function that returns true or false |

***Returns***

| Type        | Description                                                    |
| ----------- | --------------------------                                     |
| function    | Returns a function which returns true if p1 or p2 return true |

---
_Source: https://npm.io/package/fj-or · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
