hkt-toolbelt
Version:
Functional and composable type utilities
19 lines (18 loc) • 472 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isLessThan = void 0;
/**
* Given two numbers, return whether the second number is less than the first.
*
* @param {number} a - The first number.
* @param {number} b - The second number.
*
* @example
* ```ts
* import { NaturalNumber } from "hkt-toolbelt";
*
* const result = NaturalNumber.isLessThan(3)(2)
* // ^? true
* ```
*/
exports.isLessThan = ((a) => (b) => b < a);