ComparableExtensions<T extends Comparable<T>> extension

Extensions on Comparable when it is implemented by a type that is comparable to itself.

on

Methods

genericClamp<C extends T>({C min, C max}) → T
Clamp the value between min and max (inclusive), returning min if less than min, max if greater than max, or this otherwise. [...]