Skip to content
On this page

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 }

源码

源码文档

贡献者

pagnkelly

更新日志

No recent changes

根据MIT许可证发布。