luoji
luoji means logic in Chinese.
Install
npm i luoji
Usage
// true // true // true // Mix it up!// true
API
with
Assertion = boolean | left Comparation right enum Comparation '==' '===' '!=' '!==' '<' '>' '<=' '>='
and
and(Assertion, ...)
return true if all assertions are true, otherwise false.
or
or(Assertion, ...)
return false if all assertions are false, otherwise true.
not
not(Assertion)
return false if assertion is true, true if assertion is false
assert
assert(Assertion)
get the result of assertion
License
MIT