Skip to main content

Function: clip()

clip(val, low, high): number

Clips a value to an upper and lower bound.

Parameters

val: number

The value to clip.

low: number

The lower bound.

high: number

The upper bound.

Returns

number

The clipped value.

Defined in

packages/core/src/utilities/clip.ts:9