utilities
This module contains generic utility functions useful for various operations.
Utilities include formatting currencies, manipulating strings, generating identifiers, and validating inputs.
Index
Functions
Function | Description |
---|---|
formatCurrency | Formats a number as currency with a given currency code. Utilizes the Intl.NumberFormat API to handle locale-specific currency formatting. |
generateUniqueId | Converts a string to title case, making the first character of each word uppercase. Effective for formatting titles or names in a readable format. |
isValidEmail | Function to check if a value is a valid email address. |
shuffleArray | Function to shuffle an array. |
toTitleCase | Function to convert a string to title case. |
truncateString | Function to truncate a string to a specified length. |