addLeadingSlash | Adds a leading slash to a string if missing. |
addTrailingSlash | Adds a trailing slash to a URL if missing. |
cleanObject | - |
compareVersions | Compares two version strings (e.g. "1.2.3"). |
convertToText | Converts an object to a string representation. |
debounce | Debounces a function call by a delay. |
deepMerge | Deep merges two or three objects. |
deferredToPromise | Converts a jQuery Deferred to a native Promise. |
fixColorHash | Adds a hash to a color string if missing. |
functionFromString | Converts a string to a function. |
geocode | - |
getBrowser | Gets browser info (IE, Firefox, Safari). |
getDevice | Detects if the device is iOS or Android. |
getDomain | - |
getFileType | Gets the file type from a URL. |
getMouseCoords | Gets mouse or touch coordinates from an event. |
getNestedValue | Gets a nested value from an object using dot or PHP-style bracket notation. |
getUserAgent | Gets the user agent string in lowercase. |
handleFailedRequest | Handles a failed AJAX request and shows a growl error. |
idGenerator | Generator function that creates a unique ID sequence. |
isMac | Checks if the current OS is Mac. |
isNumber | Checks if a value is a number. |
isPhone | Checks if the device is a phone (max-width: 767px). |
isRemoteUrl | - |
isTablet | Checks if the device is a tablet (min-width: 768px and max-width: 1024px). |
isTouchDevice | Checks if the current device supports touch events. |
isValidURL | Validates a URL. |
loadFile | Loads a single JS or CSS file. |
loadFiles | Loads multiple files (JS or CSS). |
parseBoolean | Parses a string to boolean. |
removeLeadingSlash | Removes a leading slash from a string. |
safeURL | Normalizes a URL by removing the protocol and domain. |
sameDomain | - |
setNestedProperty | Sets or deletes a nested property in an object using PHP-style bracket notation. If value is null or undefined, deletes the property and cleans up empty parents. |
splitObjectAndField | - |
throttle | Throttles a function call by a delay. |
toSnakeCase | Converts a string to snake_case. |
ucfirst | Uppercases the first character of a string. |
useId | Returns the next unique ID in the sequence. |