Returns the human-readable format of the given number of milliseconds.
Implements the Luhn Algorithm, used to validate a variety of identification numbers.
Returns the ISO format of the given number of seconds.
Generates primes up to a given number, using the Sieve of Eratosthenes.
Converts a number to an array of digits, removing its sign if necessary.
Calculates the distance between two points in any number of dimensions.
Converts a color code to an
rgba() string if alpha value is provided.
Finds a contiguous subarray with the largest sum within an array of numbers.
Calculates the sum of the powers of all the numbers from
end (both inclusive).
Creates an array of numbers in the arithmetic progression, starting with the given positive integer and up to the specified limit.
Calculates the cartesian product of two arrays.
Returns the powerset of a given array of numbers.
Creates an array of partial sums.
Calculates the average of an array, after mapping each element to a value using the provided function.