category | alias | related |
---|---|---|
@Math |
and |
logicNot, logicOr |
AND
condition for refs.
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!')
})