Adds the given amount of days to the specified date.
Adds the given amount of months to the specified date.
Adds the given amount of years to the specified date.
This is a utility type that allows you to Autocomplete a string.
Calculates the average of the elements in the given list. If you pass a list of numbers, it calculates the average directly. If you pass a list of objects, provide the key to calculate the average.
Clone an object using structuredClone.
Calculates the days between two dates.
Returns the distinct values from a list.
A representation of a duration of time within a codebase. This class provides a way to work with durations of time in a type-safe manner.
Determines if the given value is falsy.
Returns the first thing in a list. If the value is a string, then it will return the first character.
Determines if the given thing is empty.
Compares two things by turning them into strings, and comparing them by their string value.
Compares two things by turning them into strings and lowercasing
them, and comparing the string values. Works exactly like isEqual except
will lowercase both things before comparing.
Determines if a number is even.
Checks if a date is a Friday.
Determines if the date is in the future.
Determines if the date is in the past.
Checks if a date is a Monday.
Returns true if the given value is null or undefined.
Determines if the given thing is not empty.
Compares two things by turning them into strings, and comparing them by their string value.
Compares two things by turning them into strings, trimming and lowercasing
them, and comparing the string values. Works exactly like isEqual except
will lowercase both things before comparing.
Determines if the given text contains any non-whitespace characters.
Determines if a number is odd.
Checks if a date is a Saturday.
Returns true if the given value is not null or undefined.
Checks if a date is a Sunday.
Checks if a date is a Thursday.
Determines if the date is today.
Checks if a date is a Tuesday.
Checks if a date is a Wednesday.
Checks if a date is a weekday.
Checks if a date is a weekend.
Determines if the given text is only comprised of whitespace.
Converts the string to kebab-case by removing punctuation,
trimming extra spaces, converting to lowercase, and joining words with hyphens.
This is a utility type that allows you to get the keys from an object or list.
Returns the last thing in a list. If the value is a string, then it will return the last character.
Converts the string to lowercase.
An alias for toLowerCase().
Calculates the months between two dates.
Syntactic sugar for null | undefined.
Represents a non-empty list.
Right now. This is an alias for new Date().
Represents when there can be one or many of someting
Returns a copy of the given string with all non-alpha characters removed, except for spaces. Letters are preserved regardless of case.
Returns a copy of the given string with all non-alphanumeric characters removed, except for spaces. Letters and digits are preserved regardless of case.
Removes any non-numeric characters. This includes spaces.
Represents a thing that might be None (null or undefined).
Converts a number to "1st", "2nd", "3rd", etc.
A utility type that takes an nobject type and makes the hover overlay more readable for the developer.
Represents any primitive ECMAScript value.
Gives a random number in the given range. The first parameter is inclusive and the second one is exclusive. Therefore, it will work with lists out of the box.
Reverses the given string or list.
Pick a random item from an array.
Converts a string to snake_case by replacing spaces and punctuation with underscores.
Uses kebab() internally, replacing hyphens with underscores.
Converts the given parameter into the string equivalent.
Subtracts the given amount of days from the specified date.
Subtracts the given amount of months from the specified date.
Subtracts the given amount of yers from the specified date.
Sums the elements in the given list. If you pass a list of numbers, it sums them directly. If you pass a list of objects, provide the key to sum.
Converts the string to Title Case. This will capitalize the letter of each word that is separated by a space. Underscores are considered spaces. Hyphens are respected.
Today's date at midnight.
Tomorrow's date at midnight.
Trims the whitespace from the beginning and the end. This is an
alias for .trim(). Useful for when you're mapping over lists.
Determines if the given value is truthy.
Returns the distinct values from a list.
Converts the string to uppercase.
An alias for toUpperCase().
This is a utility type that allows you to get the values from an object or a list.
Calculates the years between two dates. The date must be equal or past for it to count as a full year.
Yesterday's date at midnight.