logicAnd
AND
condition for refs.
Usage
import { logicAnd } from '@vueuse/core'
const a = ref(true)
const b = ref(false)
whenever(logicAnd(a, b), () => {
console.log('both a and b are now truthy!')
})
import { logicAnd } 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: MaybeRef<any>[]): ComputedRef<boolean>
export { logicAnd as and }
/**
* `AND` conditions for refs.
*
* @see https://vueuse.org/logicAnd
*/
export declare function logicAnd(...args: MaybeRef<any>[]): ComputedRef<boolean>
export { logicAnd as and }
Source
Contributors
Anthony Fu