@plurid/plurid-functions
Version:
General Utility Functions for Plurid Applications
23 lines (22 loc) • 551 B
TypeScript
/**
* Return true if `value` is an integer
* but not equal to `1`.
*
* @param value
*/
export declare const checkIntegerNonUnit: (value: number) => boolean;
/**
* Normalizes the `value` between the `lower` and `upper` limits.
*
* ```
* normalizeBetween( 20, 0, 100) -> 20
* normalizeBetween(-20, 0, 100) -> 0
* normalizeBetween(120, 0, 100) -> 100
* ```
*
* @param value
* @param lower
* @param upper
* @returns
*/
export declare const normalizeBetween: (value: number, lower: number, upper: number) => number;