logicOr
OR
conditions for refs.
Usage
import { logicOr } from '@vueuse/math'
import { whenever } from '@vueuse/core'
const a = ref(true)
const b = ref(false)
whenever(logicOr(a, b), () => {
console.log('either a or b is truthy!')
})
OR
conditions for refs.
import { logicOr } from '@vueuse/math'
import { whenever } from '@vueuse/core'
const a = ref(true)
const b = ref(false)
whenever(logicOr(a, b), () => {
console.log('either a or b is truthy!')
})