Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/remapper/src/mod.ts>clamp

A framework for Beat Saber map scripting.
Go to Latest
function clamp
Re-export
import { clamp } from "https://deno.land/x/remapper@2.1.0/src/mod.ts";

Makes a number fit between a min and max value.

Parameters

input: number
optional
min: number

Can be left undefined to ignore.

optional
max: number

Can be left undefined to ignore.