Skip to content

logicNot

NOT 参考条件

¥NOT condition for ref.

用法

¥Usage

ts
import { whenever } from '@vueuse/core'
import { logicNot } from '@vueuse/math'

const a = ref(true)

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

类型声明

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

源代码

源代码文档

变更日志

No recent changes

VueUse 中文网 - 粤ICP备13048890号