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 HTTP clients for miscellaneous use.
Latest
method Utils.clamp
import { Utils } from "https://deno.land/x/kd_clients@v1.0.0-preview.13/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.