主题
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 }