Skip to content
On this page

logicNot

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 }

Source

Category
Export Size
192 B
Package
@vueuse/math
Last Changed
9 months ago
Alias
not
Related

SourceDocs

贡献者(Contributors)

日志(Changelog)

No recent changes

Released under the MIT License.