Skip to content
On this page

not

Category
Last Changed
3 months ago

NOT condition for ref.

Usage

import { not } from '@vueuse/core'

const a = ref(true)

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

const a = ref(true)

whenever(not(a), () => {
  console.log('a is now falsy!')
})
  • and
  • or
  • whenever

Type Declarations

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

Source

SourceDocs

Contributors

Anthony Fu
Alex Kozack

Changelog

v4.8.3 on 4/20/2021
0f7a9 - feat(and,or,not): new functions (#459)
not has loaded