On this page
logicAnd
| Category | @Math |
|---|---|
| Export Size | 123 B |
| Package | @vueuse/math |
| Last Changed | 2 weeks ago |
| Alias | and |
| Related | logicNotlogicOr |
AND condition for refs.
Usage
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!')
})
Type Declarations
/**
* `AND` conditions for refs.
*
* @see https://vueuse.org/logicAnd
*/
export declare function logicAnd(
...args: MaybeRefOrGetter<any>[]
): ComputedRef<boolean>
export { logicAnd as and }
Source
© 2019-present Anthony Fu
Licensed under the MIT License.
https://vueuse.org/math/logicAnd/