On this page
logicNot
Category | @Math |
---|---|
Export Size | 109 B |
Package | @vueuse/math |
Last Changed | 2 weeks ago |
Alias | not |
Related | logicAnd logicOr |
NOT
condition for ref.
Usage
import { logicNot } from '@vueuse/math'
import { whenever } from '@vueuse/core'
const a = ref(true)
whenever(logicNot(a), () => {
console.log('a is now falsy!')
})
Type Declarations
/**
* `NOT` conditions for refs.
*
* @see https://vueuse.org/logicNot
*/
export declare function logicNot(v: MaybeRefOrGetter<any>): ComputedRef<boolean>
export { logicNot as not }
Source
© 2019-present Anthony Fu
Licensed under the MIT License.
https://vueuse.org/math/logicNot/