Skip to main content

Boolean

import { and, isBoolean, not } from '@rtorcato/js-common/boolean'

Exports

NameSummary
andLogical AND for two booleans.
isBooleanChecks if a value is a boolean.
notLogical NOT for a boolean.
orLogical OR for two booleans.
toBooleanConverts a value to a boolean.
xorReturns the logical exclusive OR (XOR) of two booleans.