Skip to content
On this page

logicOr

Category
Last Changed
3 months ago
Alias
or
Related

OR conditions for refs.

Usage

import { logicOr } from '@vueuse/core'

const a = ref(true)
const b = ref(false)

whenever(logicOr(a, b), () => {
  console.log('either a or b is truthy!')
})
import { logicOr } 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: MaybeRef<any>[]): ComputedRef<boolean>
export { logicOr as or }
/**
 * `OR` conditions for refs.
 *
 * @see https://vueuse.org/logicOr
 */
export declare function logicOr(...args: MaybeRef<any>[]): ComputedRef<boolean>
export { logicOr as or }

Source

SourceDocs

Contributors

Anthony Fu

Changelog

No recent changes
logicOr has loaded