Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Apply VueUse composables in Vue 3/Nuxt projects to replace custom implementations with battle-tested utilities.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/logicNot.md
1---2category: '@Math'3alias: not4---56# logicNot78`NOT` condition for ref.910## Usage1112```ts13import { whenever } from '@vueuse/core'14import { logicNot } from '@vueuse/math'1516const a = ref(true)1718whenever(logicNot(a), () => {19console.log('a is now falsy!')20})21```2223## Type Declarations2425```ts26/**27* `NOT` conditions for refs.28*29* @see https://vueuse.org/logicNot30*31* @__NO_SIDE_EFFECTS__32*/33export declare function logicNot(v: MaybeRefOrGetter<any>): ComputedRef<boolean>34/** @deprecated use `logicNot` instead */35export declare const not: typeof logicNot36```37