and
OR
conditions for refs.
Usage
import { or } from '@vueuse/core'
const a = ref(true)
const b = ref(false)
whenever(or(a, b), () => {
console.log('either a or b is truthy!')
})
Related Functions
and
not
whenever
Type Declarations
/**
* `OR` conditions for refs.
*
* @see /or
*/
export declare function or(...args: MaybeRef<any>[]): ComputedRef<boolean>