logicNot
ref的非
用法
ts
import { logicNot } from '@mpxjs/mpxuse-math'
import { whenever } from '@mpxjs/mpxuse-core'
const a = ref(true)
whenever(logicNot(a), () => {
console.log('a is now falsy!')
})
import { logicNot } from '@mpxjs/mpxuse-math'
import { whenever } from '@mpxjs/mpxuse-core'
const a = ref(true)
whenever(logicNot(a), () => {
console.log('a is now falsy!')
})
类型声明
typescript
/**
* `NOT` conditions for refs.
*
* @see https://mpxuse.cn/logicNot
*/
export declare function logicNot(v: MaybeComputedRef<any>): ComputedRef<boolean>
export { logicNot as not }
/**
* `NOT` conditions for refs.
*
* @see https://mpxuse.cn/logicNot
*/
export declare function logicNot(v: MaybeComputedRef<any>): ComputedRef<boolean>
export { logicNot as not }