UNPKG

logiq

Version:

Awesome logical and bitwise operators with support for TypedArrays

12 lines (11 loc) 250 B
import { makeConnectives } from './utils.js'; function not(p) { return !p; } function and(p, q) { return Boolean(p) && Boolean(q); } function or(p, q) { return Boolean(p) || Boolean(q); } export default makeConnectives({ not, and, or });