Socket
Book a DemoInstallSign in
Socket

fj-and

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fj-and

x && y

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
2
Created
Source

fj-and

Build Status npm version

x && y

Installation

npm install fj-and --save

Usage

var and = require('fj-and');

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

and(T, T)()); // => true
and(T)(T)()); // => true
and(T, F)()); // => false
and(F, F)()); // => false
and(F, F)()); // => false

API

and

and(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 and p2 return true

Keywords

fp-js

FAQs

Package last updated on 04 Feb 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