hkt-toolbelt
Version:
Functional and composable type utilities
20 lines (19 loc) • 488 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isGreaterThan = void 0;
/**
* Given two numbers, return whether the second number is greater 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.isGreaterThan(3)(2)
* // ^? false
* ```
*/
exports.isGreaterThan = ((a) => (b) => b > a);