Skip to main content
Module

x/froebel/math.ts>clamp

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

Clamp num between min and max inclusively.

type

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