Skip to content

logicAnd

参考文献的 AND 条件。

¥AND condition for refs.

用法

¥Usage

ts
import { 
whenever
} from '@vueuse/core'
import {
logicAnd
} from '@vueuse/math'
const
a
=
ref
(true)
const
b
=
ref
(false)
whenever
(
logicAnd
(
a
,
b
), () => {
console
.
log
('both a and b are now truthy!')
})