logicNot
 Category 
 Export Size 
192 B
 Package 
@vueuse/math Last Changed 
3 years ago
 Alias 
not Related 
NOT condition for ref.
Usage
ts
import { logicNot } from '@vueuse/math'
import { whenever } from '@vueuse/core'
const a = ref(true)
whenever(logicNot(a), () => {
  console.log('a is now falsy!')
})
import { logicNot } from '@vueuse/math'
import { whenever } from '@vueuse/core'
const a = ref(true)
whenever(logicNot(a), () => {
  console.log('a is now falsy!')
})
Type Declarations
typescript
/**
 * `NOT` conditions for refs.
 *
 * @see https://vueuse.org/logicNot
 */
export declare function logicNot(v: MaybeComputedRef<any>): ComputedRef<boolean>
export { logicNot as not }
/**
 * `NOT` conditions for refs.
 *
 * @see https://vueuse.org/logicNot
 */
export declare function logicNot(v: MaybeComputedRef<any>): ComputedRef<boolean>
export { logicNot as not }