category | alias | related |
---|---|---|
@Math |
or |
logicAnd, logicNot |
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!')
})