npm.io
1.0.0 • Published 9 months ago

es-logical-and-operator

Licence
EGPSL10X-1.0
Version
1.0.0
Deps
0
Size
4 kB
Vulns
0
Weekly
0

es-logical-and-operator

Implementation of the && operator as a function (&& in fp).

Installation

npm install es-logical-and-operator

or

yarn add es-logical-and-operator

Usage

const and = require("es-logical-and-operator")
console.log(and(true, false)) // false
console.log(and(false, true)) // false
console.log(and(false, false)) // false
console.log(and(true, true)) // true
console.log(and(1, 2)) // 2
console.log(and(0, 1)) // 0

License

EGPSL10X-1.0 Licensed

Keywords