updeep/esm/predicate.js

9 lines
290 B
JavaScript

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