Back to Vueuse

logicNot

packages/math/logicNot/index.md

14.3.0225 B
Original Source

logicNot

NOT condition for ref.

Usage

ts
import { whenever } from '@vueuse/core'
import { logicNot } from '@vueuse/math'

const a = ref(true)

whenever(logicNot(a), () => {
  console.log('a is now falsy!')
})