Skip to content

useAbs

反应式 Math.abs

¥Reactive Math.abs.

用法

¥Usage

ts
import { useAbs } from '@vueuse/math'

const value = ref(-23)
const absValue = useAbs(value) // Ref<23>