js-predicate
Predicate code bricks for JavaScript.
Can be managed through jspm, duo, component, bower, ender, jam, spm, and npm.
Install
jspm
jspm install github:aureooms/js-predicate# orjspm install npm:aureooms-js-predicate
duo
No install step needed for duo!
component
component install aureooms/js-predicate
bower
bower install aureooms-js-predicate
ender
ender add aureooms-js-predicate
jam
jam install aureooms-js-predicate
spm
spm install aureooms-js-predicate --save
npm
npm install aureooms-js-predicate --save
Require
jspm
let predicate = ;// or;
duo
let predicate = ;
component, ender, spm, npm
let predicate = ;
bower
The script tag exposes the global variable predicate
.
Alternatively, you can use any tool mentioned here.
jam
;
Use
const lt le gt truth untruth negation conjunction disjunction implication } = predicate ; let p = ; ; // false ; // true let q = ; ; // true ; // false let r = ; ; // false ; // true ; // false let s = ; ; // true ; // false ; // true let t = ; ; // true let u = ; ; // true let v = ; ; // true