UNPKG

hkt-toolbelt

Version:

Functional and composable type utilities

20 lines (19 loc) 522 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isGreaterThanOrEqual = void 0; /** * Given two numbers, return whether the second number is greater than or equal * to the first. * * @param {number} a - The first number. * @param {number} b - The second number. * * @example * ```ts * import { NaturalNumber } from "hkt-toolbelt"; * * const result = NaturalNumber.isGreaterThanOrEqual(3)(2) * // ^? false * ``` */ exports.isGreaterThanOrEqual = ((a) => (b) => b >= a);