UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

26 lines (25 loc) 504 B
/** * Checks if `value` is less than or equal to `other`. * * @since 5.7.0 * @category Lang * @param value The value to compare. * @param other The other value to compare. * @returns Returns `true` if `value` is less than or equal to * `other`, else `false`. * @see [[gt]], [[gte]], [[lt]] * @example * * ```js * lte(1, 3) * // => true * * lte(3, 3) * // => true * * lte(3, 1) * // => false * ``` */ export declare function lte<T>(value: T, other: T): boolean; export default lte;