UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

26 lines (24 loc) 427 B
import { dfdlT } from "@monstermann/dfdl"; //#region src/number/lt.ts /** * `lt(target, source)` * * Returns `true` if `target` is less than `source`, otherwise `false`. * * ```ts * lt(3, 5); // true * lt(7, 2); // false * lt(4, 4); // false * ``` * * ```ts * pipe(3, lt(5)); // true * pipe(7, lt(2)); // false * pipe(4, lt(4)); // false * ``` */ const lt = dfdlT((a, b) => { return a < b; }, 2); //#endregion export { lt };