UNPKG

apphouse

Version:

Component library for React that uses observable state management and theme-able components.

10 lines (9 loc) 585 B
/** * Checks if a number is within the specified range. * * @param {number} number - The number to check. * @param {number} start - The start of the range (inclusive). If not provided, assumes a range from 0 to the specified number. * @param {number} [end] - The end of the range (exclusive). If not provided, assumes the start value as the end, and start value as 0 if start is positive. * @returns {boolean} - Returns true if the number is within the specified range, false otherwise. */ export declare function inRange(number: number, start?: number, end?: number): boolean;