Skip to content

logicOr

OR 参考条件。

¥OR conditions for refs.

用法

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