A collection of essential utility functions for JavaScript and TypeScript applications. This package provides a set of handy functions to simplify common programming tasks and improve code readability.
-
all: Checks if all given conditions are true.
-
any (or either): Checks if at least one condition is true.
-
none: Checks if none of the conditions are true.
-
toggle: Toggles a boolean value.
-
shuffle: Shuffles the elements of an array. String Functions:
-
capitalize: Capitalizes the first letter of a string. Object Functions:
-
deepClone: Creates a deep copy of an object. Date Functions:
-
formatDate: Formats a Date object into a string.
- clamp: Clamps a numeric value within a specified range.
- sum: Calculates the sum of numbers in an array.
- range: Generates an array of numbers within a specified range.