Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Apply VueUse composables in Vue 3/Nuxt projects to replace custom implementations with battle-tested utilities.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/logicOr.md
1---2category: '@Math'3alias: or4related: logicAnd, logicNot5---67# logicOr89`OR` conditions for refs.1011## Usage1213```ts14import { whenever } from '@vueuse/core'15import { logicOr } from '@vueuse/math'1617const a = ref(true)18const b = ref(false)1920whenever(logicOr(a, b), () => {21console.log('either a or b is truthy!')22})23```2425## Type Declarations2627```ts28/**29* `OR` conditions for refs.30*31* @see https://vueuse.org/logicOr32*33* @__NO_SIDE_EFFECTS__34*/35export declare function logicOr(36...args: MaybeRefOrGetter<any>[]37): ComputedRef<boolean>38/** @deprecated use `logicOr` instead */39export declare const or: typeof logicOr40```41