Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/kd_clients/core/Utils.ts>Utils.clamp

Various types of HTTP clients for misc uses. This is used in the organization's infrastructure.
Go to Latest
method Utils.clamp
import { Utils } from "https://deno.land/x/kd_clients@v0.0.5/core/Utils.ts";

Returns a number that is clamped between the given min and max values.

Parameters

value: number

The value to clamp.

min: number

The minimum value.

max: number

The maximum value.

Returns

number

A value that is clamped between the given min and max values.