Skip to content

logicOr ​

类别
导出大小
98 B
包
@vueuse/math
最近修改
8 months 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!')
})