Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/froebel/mod.ts>clamp

A strictly typed utility library.
Go to Latest
variable clamp
import { clamp } from "https://deno.land/x/froebel@v0.18.0/mod.ts";

Clamp num between min and max inclusively.

type

(
min: number,
num: number,
max: number,
) => unknown