Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

fj-or

1.0.0 • Public • Published

fj-or

Build Status npm version

x && y

Installation

npm install fj-or --save

Usage

var or = require('fj-or');
 
let T = () => true;
let F = () => false;
 
or(T, T)()); // => true
or(T)(T)()); // => true
or(T, F)()); // => false
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

Install

npm i fj-or

DownloadsWeekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar