Validates whether the current environment is a CI environment
Validates whether the current environment is either development or test
Validates whether the current environment is test
Type safely checks if an object includes a given property without using the prototype
Transforms the first letter to a capital then adds all the rest after it Differs from sentenceCase in that the casing of the text after the first letter is retained
Text to transform
Creates a dummy event
Value to put on the target, used for click/change events
Any additional data to put into the event
Inserts a space in any text after every maxLength amount of characters, allowing Material-UI to gracefully wrap it
text to split
The maximum length of a text section @default 75
Split a text by its latest space character in a range from the character 0 to the selected one.
The text to split.
The length of the desired string.
Group the elements of the input array to a Stack using the keyExtractor and valueExtractor the to obtain the key and value for each element.
The array of data to group into a Stack
A function that describes where to find the key to use for the Stack
A function that describes where to find the value to use for the Stack
A Stack<Key, Value[]>
of the grouped values
Verify if the input is an object literal (or class).
The object to verify
Merges two objects
The object to be merged
The object to merge
Transforms given text to sentence case (First letter uppercase, rest lowercase)
Text to transform
Transforms text from snake_case to camelCase.
Text to transform
Split a string by its latest space character in a range from the character 0 to the selected one.
The text to split.
The length of the desired string.
The character to split with
Stabily sorts an array of objects using lodash.orderby
Array of objects to order
Key to order by
Order ascending or descending
Mapping of table headers for sorting on nested properties
Checks if a Jest mocked function is called a certain amount of times with a certain amount of arguments
The function that has to be called
The amount of times the function should be called
Any arguments the function should be called with
Create a Stack
using the keyExtractor
and valueExtractor
the to obtain the key and value for each element.
The array of data to transform into a Stack
A function that describes where to find the key to use for the Stack
A function that describes where to find the value to use for the Stack
A Stack<Key, Value>
of the values, mapped by the given key
React hook to get the current window size Triggers on window resize.
Use with use-debounce to ensure it is not triggered instantly!!
Generated using TypeDoc
Rijkswaterstaat Utils
Utils AIR projects
Project Status
Bundle Sizes
Versions
Our Badges
Installation
API Documentation
Check out the docs on github pages