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!')
})