Skip to content

logicOr

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

OR 参考条件。

用法

🌐 Usage

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