A library with over 100 utility types to empower TypeScript development.
Requires TypeScript >= 5.0
npm i -D utilitypes
General (6)
Array (25)
Boolean (17)
Function (7)
Number (34)
Absolute<N>
Add<X, Y>
Bit
Ceil<N>
Compare<X, Y>
Digit
DivMod<X, Y>
Divide<X, Y>
Eq<X, Y>
Factorial<N>
Floor<N>
Gt<X, Y>
Gte<X, Y>
IsEven<N>
IsFloat<N>
IsInteger<N>
IsNegative<N>
IsOdd<N>
IsPositive<N>
IsPrime<N>
Lt<X, Y>
Lte<X, Y>
Max<N>
Min<N>
MinMax<N>
Modulo<X, Y>
Multiply<X, Y>
Negate<N>
ParseInt<S, B>
Pow<B, N>
Range<A, B, O>
Sign<N>
Subtract<X, Y>
ToDigits<N>
Object (20)
String (22)
At<T, N>
CaseType
ChangeCase<S, T>
EndsWith<S, T, N>
IndexOf<S, N>
Length<S>
LowercaseChar
PadEnd<S, N, P>
PadStart<S, N, P>
Repeat<S, N>
Replace<S, T, U>
ReplaceAll<S, T, U>
Reverse<S>
Slice<S, A, B>
Split<S, U, N>
StartsWith<S, T, N>
Trim<S, T>
TrimEnd<S, T>
TrimStart<S, T>
Truncate<S, N>
UppercaseChar
Whitespace