Category | @Math |
---|---|
Export Size | 122 B |
Package | @vueuse/math |
Last Changed | 2 weeks ago |
Alias | or |
Related |
logicAnd logicNot
|
OR
conditions for refs.
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!') })
/** * `OR` conditions for refs. * * @see https://vueuse.org/logicOr */ export declare function logicOr( ...args: MaybeRefOrGetter<any>[] ): ComputedRef<boolean> export { logicOr as or }
© 2019-present Anthony Fu
Licensed under the MIT License.
https://vueuse.org/math/logicOr/