Appearance
logicAnd
Category
Export Size
66 B
Package
@reause/math Last Changed
5 days ago
Related
AND condition for values
Demo
Usage
tsx
import { logicAnd } from '@reause/math'
const both = logicAnd(true, false) // false
const all = logicAnd(true, false, 1) // false
const every = logicAnd(true, 1, 'foo') // trueArguments are plain read-only values (upstream takes MaybeRefOrGetter<any>[]). The result is re-evaluated on every call — there is no reactivity, so re-renders drive re-evaluation.
Type Declarations
ts
export function logicAnd(...args: any[]): boolean