Skip to content

⬅️ Back to Table of Contents

📄 logicOr

📊 Analysis Summary

Metric Count
🔧 Functions 1
📦 Imports 4
📊 Variables & Constants 1
🟢 Vue Composition API 1

📚 Table of Contents

🛠️ File Location:

📂 packages/math/logicOr/index.ts

📦 Imports

Name Source
ComputedRef vue
MaybeRefOrGetter vue
computed vue
toValue vue

Variables & Constants

Name Type Kind Value Exported
or (...args: MaybeRefOrGetter<any>[]) =>... const logicOr

Vue Composition API

Name Type Reactive Variables Composables
computed computed none none

Functions

logicOr(args: MaybeRefOrGetter<any>[]): ComputedRef<boolean>

OR conditions for refs.

See: https://vueuse.org/logicOr

Tags: @__NO_SIDE_EFFECTS__

Raw JSDoc
/**
 * `OR` conditions for refs.
 *
 * @see https://vueuse.org/logicOr
 *
 * @__NO_SIDE_EFFECTS__
 */

Calls:

  • computed (from vue)
  • args.some
  • toValue (from vue)
Code
export function logicOr(...args: MaybeRefOrGetter<any>[]): ComputedRef<boolean> {
  return computed(() => args.some(i => toValue(i)))
}

Generated by Syntax Scribe