Skip to content

⬅️ Back to Table of Contents

📄 logicAnd

📊 Analysis Summary

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

📚 Table of Contents

🛠️ File Location:

📂 packages/math/logicAnd/index.ts

📦 Imports

Name Source
ComputedRef vue
MaybeRefOrGetter vue
computed vue
toValue vue

Variables & Constants

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

Vue Composition API

Name Type Reactive Variables Composables
computed computed none none

Functions

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

AND conditions for refs.

See: https://vueuse.org/logicAnd

Tags: @__NO_SIDE_EFFECTS__

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

Calls:

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

Generated by Syntax Scribe