UNPKG

@cran/lib.vue.ref

Version:

Vue Reactivity Extensions

14 lines (11 loc) 285 B
import { type MaybeWrapped, eagerComputed, unwrap } from "../utility"; /** * @since 0.0.1 * @category Object * @inheritdoc String */ export function useString<T> ( value: MaybeWrapped<T> ) { return eagerComputed(function compute ( ) { return String(unwrap(value)); }); }