updeep/esm/predicate.js

9 lines
290 B
JavaScript
Raw Normal View History

2025-01-31 17:50:51 +00:00
import matches from "./matches.js";
export function buildPredicate(predicate) {
if (typeof predicate === "function")
return predicate;
if (typeof predicate === "object")
return matches(predicate);
return () => !!predicate;
}
//# sourceMappingURL=predicate.js.map