/**
 * Trim a value to be in the min/max range
 * @param value - value to trim
 * @returns min - minimum value
 * @returnx max - maximum value
 */
export const trimNumber = (value: number, min: number, max: number): number => {
    return Math.min(Math.max(value, min), max);
};
