Category | @Math |
---|---|
Export Size | 123 B |
Package | @vueuse/math |
Last Changed | 2 weeks ago |
Alias | and |
Related |
logicNot logicOr
|
AND
condition for refs.
import { logicAnd } from '@vueuse/math' import { whenever } from '@vueuse/core' const a = ref(true) const b = ref(false) whenever(logicAnd(a, b), () => { console.log('both a and b are now truthy!') })
/** * `AND` conditions for refs. * * @see https://vueuse.org/logicAnd */ export declare function logicAnd( ...args: MaybeRefOrGetter<any>[] ): ComputedRef<boolean> export { logicAnd as and }
© 2019-present Anthony Fu
Licensed under the MIT License.
https://vueuse.org/math/logicAnd/