Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 329 Bytes

index.md

File metadata and controls

23 lines (17 loc) · 329 Bytes
category alias related
@Math
and
logicNot, logicOr

logicAnd

AND condition for refs.

Usage

import { logicAnd } from '@vueuse/math'
import { whenever } from '@vueuse/core'

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

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