Kitto
    Preparing search index...

    Module clamp

    2.0.0

    Clamps a value between an inclusive range.

    The input value to be clamped.

    The lower boundary of the range.

    The upper boundary of the range.

    The clamped value.

    If min is greater than max.

    clamp(10, 0, 5);  // Returns 5
    clamp(-5, 0, 5); // Returns 0
    clamp(3, 0, 5); // Returns 3

    Functions

    clamp