npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

fj-or

1.0.0

@hemanth

npmHomeRepoSnykSocket
Downloads:157
$ npm install fj-or
DailyWeeklyMonthlyYearly

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

NameTypeDescription
p1functionA function that returns true or false
p2functionA function that returns true or false

Returns

TypeDescription
functionReturns a function which returns true if p1 or p2 return true