UNPKG

@cran/lib.vue.ref

Version:

Vue Reactivity Extensions

12 lines (11 loc) 254 B
import { eagerComputed, unwrap } from "../utility"; /** * @since 0.0.1 * @category Object * @inheritdoc parseFloat */ export function useFloat(value) { return eagerComputed(function compute() { return parseFloat(unwrap(value)); }); }