UNPKG

@cran/lib.vue.ref

Version:

Vue Reactivity Extensions

12 lines (11 loc) 271 B
import { eagerComputed, unwrap } from "../utility"; /** * @since 0.0.1 * @category Array * @inheritdoc Array#at */ export function useAt(values, index) { return eagerComputed(function compute() { return unwrap(unwrap(values).at(unwrap(index))); }); }