import { computed } from "vue";
import { wrapArrayPredicate } from "./ArrayPredicate";
import { unwrap } from "../utility";
export function useFilter(values, predicate) {
return computed(function compute() {
return unwrap(values).filter(wrapArrayPredicate(predicate));
});
}