UNPKG

@cran/lib.vue.ref

Version:

Vue Reactivity Extensions

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