Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 322 Bytes

index.md

File metadata and controls

23 lines (17 loc) · 322 Bytes
category alias related
@Math
or
logicAnd, logicNot

logicOr

OR conditions for refs.

Usage

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

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

whenever(logicOr(a, b), () => {
  console.log('either a or b is truthy!')
})