//#region src/is-lesser-equal/index.d.ts /** * Creates a predicate function that determines if a value is less than or equal to a threshold. * * @template T - The type of the values (number or string) * @param threshold - The threshold value to compare against * @param value - The value to test * * @remarks * - Pure function with no side effects * - Uses JavaScript's `<=` operator for comparison * - Works with both numbers and strings (lexicographic comparison for strings) * - Inclusive comparison (equal values return true) * - Useful for array filtering and functional composition * * @example * ```typescript * const isAtMost100 = isLesserEqual(100); * isAtMost100(50); // true * isAtMost100(100); // true (inclusive) * isAtMost100(150); // false * * const isAtMostM = isLesserEqual('M'); * isAtMostM('A'); // true * isAtMostM('M'); // true * isAtMostM('Z'); // false * * // Useful with arrays * const ages = [16, 18, 21, 25, 30]; * const underAge = ages.filter(isLesserEqual(20)); // [16, 18] * ``` */ declare const isLesserEqual: (threshold: T) => (value: T) => boolean; //#endregion export { isLesserEqual }; //# sourceMappingURL=index.d.ts.map