UNPKG

@cran/lib.vue.ref

Version:

Vue Reactivity Extensions

13 lines (12 loc) 286 B
import { computed } from "vue"; import { unwrap } from "../utility"; /** * @since 0.0.1 * @category Array * @inheritdoc Array#toReversed */ export function useReversed(values) { return computed(function compute() { return unwrap(values).map(unwrap).reverse(); }); }