UNPKG

@cran/lib.vue.ref

Version:

Vue Reactivity Extensions

14 lines (13 loc) 359 B
import { computed } from "vue"; import { wrapArrayPredicate } from "./ArrayPredicate"; import { unwrap } from "../utility"; /** * @since 0.0.1 * @category Array * @inheritdoc Array#every */ export function useEvery(values, predicate) { return computed(function compute() { return unwrap(values).every(wrapArrayPredicate(predicate)); }); }