Socket
Book a DemoInstallSign in
Socket

fj-or

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fj-or

x && y

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

fp-js

FAQs

Package last updated on 31 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts