Skip to content

logicAnd

类别
导出大小
104 B
@vueuse/math
最近修改
2 days ago
别名
and
相关

AND 条件用于参考。

用法

🌐 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!')
})