On this page
logicOr
Category | @Math |
---|---|
Export Size | 122 B |
Package | @vueuse/math |
Last Changed | 2 weeks ago |
Alias | or |
Related | logicAnd logicNot |
OR
conditions for refs.
Usage
import { logicOr } from '@vueuse/math'
import { whenever } from '@vueuse/core'
const a = ref(true)
const b = ref(false)
whenever(logicOr(a, b), () => {
console.log('either a or b is truthy!')
})
Type Declarations
/**
* `OR` conditions for refs.
*
* @see https://vueuse.org/logicOr
*/
export declare function logicOr(
...args: MaybeRefOrGetter<any>[]
): ComputedRef<boolean>
export { logicOr as or }
Source
© 2019-present Anthony Fu
Licensed under the MIT License.
https://vueuse.org/math/logicOr/