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

x/froebel/clamp.ts>default

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

Clamp num between min and max inclusively.

type

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