UNPKG

everyutil

Version:

A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.

6 lines (5 loc) 242 B
/** * Given an object of predicates or rules, evaluates which ones pass in a context. * @author @dailker */ export declare function evaluateConditions<T>(obj: Record<string, (ctx: T) => boolean>, context: T): Record<string, boolean>;