Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt

Use this file to discover all available pages before exploring further.

function clamp(
   value: number, 
   min: number, 
   max: number): number;
Clamp a value between a minimum and maximum value.

Parameters

ParameterTypeDescription
valuenumberThe value to clamp.
minnumberThe minimum value.
maxnumberThe maximum value.

Returns

number The clamped value.