UNPKG

@cran/lib.vue.ref

Version:

Vue Reactivity Extensions

8 lines (7 loc) 271 B
import { eagerComputed, unwrap } from "../utility"; // eslint-disable-next-line @typescript-eslint/no-explicit-any export function useGet(values, property) { return eagerComputed(function compute() { return unwrap(unwrap(values)[unwrap(property)]); }); }