Skip to content
On this page

logicNot

Category
Last Changed
3 months ago
Alias
not
Related

NOT condition for ref.

Usage

import { logicNot } from '@vueuse/core'

const a = ref(true)

whenever(logicNot(a), () => {
  console.log('a is now falsy!')
})
import { logicNot } from '@vueuse/core'

const a = ref(true)

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

Type Declarations

/**
 * `NOT` conditions for refs.
 *
 * @see https://vueuse.org/logicNot
 */
export declare function logicNot(v: MaybeRef<any>): ComputedRef<boolean>
export { logicNot as not }
/**
 * `NOT` conditions for refs.
 *
 * @see https://vueuse.org/logicNot
 */
export declare function logicNot(v: MaybeRef<any>): ComputedRef<boolean>
export { logicNot as not }

Source

SourceDocs

Contributors

Anthony Fu

Changelog

No recent changes
logicNot has loaded