Skip to content
On this page

logicAnd

Category
Last Changed
5 months ago
Alias
and
Related

AND condition for refs.

Usage

import { logicAnd } from '@vueuse/core'

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

whenever(logicAnd(a, b), () => {
  console.log('both a and b are now truthy!')
})
import { logicAnd } from '@vueuse/core'

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

whenever(logicAnd(a, b), () => {
  console.log('both a and b are now truthy!')
})

Type Declarations

/**
 * `AND` conditions for refs.
 *
 * @see https://vueuse.org/logicAnd
 */
export declare function logicAnd(...args: MaybeRef<any>[]): ComputedRef<boolean>
export { logicAnd as and }
/**
 * `AND` conditions for refs.
 *
 * @see https://vueuse.org/logicAnd
 */
export declare function logicAnd(...args: MaybeRef<any>[]): ComputedRef<boolean>
export { logicAnd as and }

Source

SourceDocs

Contributors

Anthony Fu

Changelog

No recent changes
logicAnd has loaded