# Documentation - **Getting Started** - [Introduction](/docs): Toolbox-X is a JavaScript/TypeScript library for professional development, offering helper functions, type guards, validation utilities, and types with zero dependencies. - [Installation](/docs/installation): How to install toolbox-x in your project. - [Quick Start](/docs/quick-start): Get up and running with toolbox-x in minutes. - **API Reference** - Utilities - [Utilities](/docs/utils): Utility Functions — Toolbox-X Documentation. - Array Utilities - [Array Utilities](/docs/utils/array): Utilities for array operations in TypeScript/JavaScript. - [Array Metrics Utilities](/docs/utils/array/array-metrics): Utilities for performing arithmetic operations like sum, average, or difference on arrays of objects. - [Create Array of Options](/docs/utils/array/create-options-array): Converts an array of objects into a formatted array of options. - [Sort Array](/docs/utils/array/sort-array): Sorts an array of various data types based on the provided sorting options. - [Array Split Utilities](/docs/utils/array/split-array): Split Arrays using multiple methods. - [Find Missing Elements](/docs/utils/array/find-missing): Finds elements in one array that are missing from another array. - [Get Duplicates](/docs/utils/array/get-duplicates): Finds duplicate values in an array. - [Remove Duplicates](/docs/utils/array/remove-duplicates): Removes duplicate values from an array. - [Get Last Array Element](/docs/utils/array/get-last-element): Gets the last element of an array. - [Move Array Element](/docs/utils/array/move-element): Repositions an element in an array from one index to another. - [Rotate Array](/docs/utils/array/rotate-array): Rotates an array to the left or right by a specified number of steps. - [Shuffle Array](/docs/utils/array/shuffle-array): Shuffles the elements of an array. - [Filter Array of Objects](/docs/utils/array/filter-array): Filters an array of objects based on multiple conditions. - [Flatten Array](/docs/utils/array/flatten-array): Flattens a nested array recursively or wraps any non-array data type in an array. - Color Utilities - [Color Utilities](/docs/utils/color): Utilities for color format validation, conversion, parsing, and random color generation in TypeScript/JavaScript. - [Get Color For Initial](/docs/utils/color/get-color-for-initial): Generates consistent hex colors based on the first character of strings or numbers. - [Generate Random Color](/docs/utils/color/random-color): Generates unique random colors in HEX, RGB, or HSL format, ensuring visual distinctness. - [Color Format Checkers](/docs/utils/color/color-checkers): A collection of type guards to validate color formats like HEX, RGB, RGBA, HSL, and HSLA. - [Color Converters](/docs/utils/color/color-converters): Comprehensive tools for converting between HEX, RGB, HSL, and their alpha-channel variants. - [Convert Color Code](/docs/utils/color/convert-color-code): Converts between solid or alpha-channel color formats, returning all other equivalent formats. - [Extract Color Values](/docs/utils/color/extract-color-values): Utility functions to extract numeric component values from CSS RGB/RGBA/HSL/HSLA color strings. - Date-Time Utilities - [Add Units to Date](/docs/utils/date-time/add-date): Add one or more units to a given date — Toolbox-X Documentation. - [Convert Minutes into Formatted Time String](/docs/utils/date-time/convert-minutes): Convert Minutes into Formatted Time String — Toolbox-X Documentation. - [Extract Hour & Minute](/docs/utils/date-time/extract-hour-minute): Extract Hour & Minute from Time — Toolbox-X Documentation. - [Extract Minutes From UTC](/docs/utils/date-time/extract-minutes-utc): Extract Minutes From UTC — Toolbox-X Documentation. - [Extract Time From UTC](/docs/utils/date-time/extract-time-utc): Extract Time From UTC — Toolbox-X Documentation. - [Format Date & Time](/docs/utils/date-time/format-date): Format Date & Time — Toolbox-X Documentation. - [Format UTC Offset](/docs/utils/date-time/format-utc-offset): Format UTC Offset — Toolbox-X Documentation. - [Get Time-Based Greeting](/docs/utils/date-time/get-greeting): Get Time-Based Greeting — Toolbox-X Documentation. - [Get Timestamp](/docs/utils/date-time/get-timestamp): Get Timestamp — Toolbox-X Documentation. - [Extract Total Minutes](/docs/utils/date-time/get-total-minutes): Extract Total Minutes — Toolbox-X Documentation. - [Parse Time Value](/docs/utils/date-time/parse-time): Parse Time Value — Toolbox-X Documentation. - [Get Time Zone Details](/docs/utils/date-time/time-zone): Get Time Zone Details — Toolbox-X Documentation. - DOM Utilities - [DOM Utilities](/docs/utils/dom): Essential utilities for DOM manipulation, browser API interactions, URL query parameters, and storage handling. - [Local Storage Utilities](/docs/utils/dom/local-storage): Safely and conveniently interact with the browser's Local Storage API, supporting typed items and custom serialization. - [Session Storage Utilities](/docs/utils/dom/session-storage): Safely and conveniently interact with the browser's Session Storage API with full type safety and custom serialization. - [Copy Text to Clipboard](/docs/utils/dom/copy-to-clipboard): Copies text to the user's clipboard using modern clipboard APIs when available, falling back to legacy methods for browser compatibility. - [Generate Query Parameters](/docs/utils/dom/generate-query-params): Generates a URL-encoded query string from an object, flattening nested fields and supporting arrays, booleans, and various primitive types. - [Get Query Parameters as Object](/docs/utils/dom/get-query-params): Retrieves URL query parameters and converts them into a standard JavaScript object. - [Update Query Parameter in URL](/docs/utils/dom/update-query-param): Updates a query parameter in the browser's current URL without reloading the page. - [Parse Query String into Object](/docs/utils/dom/parse-query-string): Parses query strings into objects, optionally converting primitive values or inferring strict literal types. - [Smooth Scroll to Element](/docs/utils/dom/smooth-scroll-to): Smoothly scrolls the webpage to a target HTML element, with optional vertical pixel offset. - [Toggle Full Screen Mode](/docs/utils/dom/toggle-full-screen): Toggles the browser's full-screen mode for a given element or the entire page. - Form Utilities - [Form Utilities](/docs/utils/form): Essential utilities for form serialization, parsing, and converting data to and from FormData in TypeScript/JavaScript. - [Create FormData](/docs/utils/form/create-form-data): Converts JavaScript objects, nested structures, and files into standard FormData with comprehensive formatting options. - [Parse FormData](/docs/utils/form/parse-form-data): Converts FormData or query strings into structured JavaScript objects with optional primitive parsing. - [Serialize Form](/docs/utils/form/serialize-form): Converts HTML form elements into structured JavaScript objects or URL-encoded query strings. - Hash & Encoding - [Hash & Encoding](/docs/utils/hash): A comprehensive suite of hashing, UUID, encoding, and lightweight cryptographic utilities—including JWT-style signing, `stream-cipher` encryption, and more. - [Generate UUID](/docs/utils/hash/uuid): Generate RFC-compliant UUIDs (v1, v3, v4, v5, v6, v7, v8) with deterministic and random variants. - [Decode UUID](/docs/utils/hash/decode-uuid): Decodes a UUID into its internal components, including version, variant, timestamps, and other metadata. - [Check UUID Versions](/docs/utils/hash/check-uuid-versions): Check if a value is a valid UUID of the specified version. - [Generate Random Hex](/docs/utils/hash/random-hex): Generate a random hexadecimal string of the specified length. - [Generate Random Bytes](/docs/utils/hash/random-bytes): Generates random bytes in the Uint8Array format. - [Generate Random Numeric](/docs/utils/hash/random-numeric): Generate a random numeric string of the specified length. - [Generate Random Alphanumeric](/docs/utils/hash/random-alphanumeric): Generate a random alphanumeric string (letters and numbers) of the specified length. - [MD5 Generator](/docs/utils/hash/md5): Computes an MD5 digest of the given string using a pure JavaScript implementation. - [SHA-1 Generator](/docs/utils/hash/sha-1): Computes a SHA-1 digest of the given string using a pure JavaScript implementation. - [SHA-256 Generator](/docs/utils/hash/sha-256): Computes the SHA-256 hash of a UTF-8 string and returns it as a lowercase hexadecimal string. - [Encrypt/Decrypt Text](/docs/utils/hash/Cipher): A lightweight stream-cipher encryption utility using HMAC-SHA256 for keystream generation. - [Sign, Decode, Verify Tokens](/docs/utils/hash/Signet): A lightweight, secure implementation of JWT-like tokens using HMAC-SHA256 signatures. - [Text Encoding Conversions](/docs/utils/hash/TextCodec): TextCodec provides UTF-8–safe conversions between text, hex, binary, and Base64 representations using byte-level transformations. - [Encoding & Crypto Utilities](/docs/utils/hash/encoding): Low-level encoding, decoding, and cryptographic functions for working with bytes, UTF-8, Base64, and SHA-256. - Miscellaneous Utilities - [Miscellaneous Utilities](/docs/utils/misc): General-purpose utilities for common programming tasks, including JSON parsing, prototyping, debouncing, throttling, country phone lookups, and console styling. - [Inspect Class & Its Methods](/docs/utils/misc/class-methods): Introspect and summarize the instance/static methods and getters of JavaScript/TypeScript classes. - [Convert Array to String](/docs/utils/misc/convert-array-to-string): Joins elements of a primitive array or extracts and joins nested object fields into a single string. - [Debounce Function/Action](/docs/utils/misc/debounce-action): Creates a debounced version of a callback that delays its execution until after a specified period of inactivity. - [Throttle Function/Action](/docs/utils/misc/throttle-action): Creates a throttled version of a callback that ensures it executes at most once every specified interval. - [Deep Parse Primitive Values](/docs/utils/misc/deep-parse-primitives): Recursively parses any input structure and converts stringified primitives into their actual JavaScript types. - [Define Prototype Method](/docs/utils/misc/define-prototype-method): Safely defines methods on JavaScript prototypes (including built-ins) in an idempotent and non-enumerable manner. - [Country Details By Phone](/docs/utils/misc/get-country-by-phone): Identifies matching countries and extracts details based on the country dial code prefix in a phone number. - [HTTP Status Codes Utility](/docs/utils/misc/http-status): A preloaded shared instance of HttpStatus providing HTTP status code information and lookup helpers. - [JSON Stringify Helpers](/docs/utils/misc/json-stringify): Utilities for stable JSON stringification and cleaning surrounding JSON garbage. - [Parse Any JSON](/docs/utils/misc/parse-json): Parse any JSON string into a structured value, with optional deep parsing of stringified primitives. - [Stylog Console Styling](/docs/utils/misc/stylog): Chainable wrapper around LogStyler for styled console output supporting ANSI-16, HEX, RGB, and HSL colors. - [Stylog Utilities](/docs/utils/misc/stylog-utils): Helper functions for styling console output, including validation, detection, and conversion. - Number Utilities - [Number Utilities](/docs/utils/number): Utilities for working with numeric values in TypeScript/JavaScript. - [Handle Bangla Digits](/docs/utils/number/bangla-digits): Utilities for converting between Bangla digits and Latin digits. - [Calculate HCF (GCD)](/docs/utils/number/calculate-hcf): Calculates the highest common factor (greatest common divisor) of multiple numbers. - [Calculate LCM (LCD)](/docs/utils/number/calculate-lcm): Calculates the least common multiple of multiple numbers. - [Calculate Percentage](/docs/utils/number/calculate-percentage): Performs various percentage-related calculations based on the specified mode. - [Clamp Number](/docs/utils/number/clamp-number): Restricts a number to fall within a specified minimum and maximum range. - [Convert to Decimal](/docs/utils/number/convert-to-decimal): Rounds a number to a specified number of decimal places and returns it as a number or string. - [Calculate Factorial](/docs/utils/number/factorial): Computes the factorial of a non-negative numeric value. - [Fibonacci Number(s)](/docs/utils/number/fibonacci): Utilities for working with the Fibonacci sequence, generating series, fetching term values, or iterating lazily. - [Find Prime Numbers](/docs/utils/number/find-prime-numbers): Returns all prime numbers within a specified numeric range. - [Format Currency](/docs/utils/number/format-currency): Formats a number or numeric string as a locale-aware currency string. - [Safely Add Numbers](/docs/utils/number/safe-add): Adds numbers safely, avoiding common floating-point arithmetic issues. - [Get Average](/docs/utils/number/get-average): Calculates the average of a set of provided numbers, rounding the result to three decimal places. - [Factors of a Number](/docs/utils/number/get-factors): Efficiently computes all positive integer factors (divisors) of a number. - [Get Numbers In Range](/docs/utils/number/get-numbers-in-range): Generates a sequence of numbers within a specified range, with various filtering and formatting options. - [Get Ordinal Suffix](/docs/utils/number/get-ordinal): Returns the ordinal suffix for a given number or numeric string. - [Get Random Float](/docs/utils/number/get-random-float): Generates a random floating-point number within a specified range. - [Get Random Number](/docs/utils/number/get-random-number): Generates a random number within a specified range, with flexible options for including or excluding boundaries. - [Get Decimal Places](/docs/utils/number/get-decimal-places): Returns the number of decimal places represented by a number or numeric string. - [Normalize Numeric Value](/docs/utils/number/normalize-number): Safely converts a number or numeric string to a number. - [Number to Words (Cardinal)](/docs/utils/number/number-to-words): Converts a numeric value into its English word representation. - [Number to Words (Ordinal)](/docs/utils/number/number-to-words-ordinal): Converts a number, numeric string, or cardinal word string into its ordinal word representation. - [Reverse Number](/docs/utils/number/reverse-number): Reverses the digits of a given number while preserving its sign. - [Handle Roman Numerals](/docs/utils/number/roman-numerals): Convert between integers and Roman numerals (1-3999). - [Round A Number](/docs/utils/number/round-number): Rounds a number or numeric string to a specified number of decimal or integer places. - [Round to Nearest](/docs/utils/number/round-to-nearest): Rounds a number or numeric string to the closest multiple of a specified interval. - [Sum Digits](/docs/utils/number/sum-digits): Calculates the sum of all digits in a given number, ignoring the sign. - [Sum Numbers](/docs/utils/number/sum-numbers): Calculates the total sum of a set of numbers or numeric strings. - [Convert Words to Number](/docs/utils/number/words-to-number): Converts an English cardinal or ordinal word string into its numeric value. - Object Utilities - [Object Utilities](/docs/utils/object): Essential utilities for object manipulation, deep/shallow cloning, flattening, merging, and type-safe transformation in TypeScript/JavaScript. - [Clone Object](/docs/utils/object/clone-object): Creates a deep clone of an object using structuredClone or deterministic JSON serialization. - [Sanitize Data](/docs/utils/object/sanitize-data): Cleans and normalizes strings, arrays, and objects by trimming whitespace, removing empty values, and applying customizable filters. - [Convert Object Values](/docs/utils/object/convert-object-values): Converts specified values in objects or arrays of objects between string and number types, supporting nested properties via dot notation. - [Count Object Fields](/docs/utils/object/count-object-fields): Counts the number of enumerable own properties in an object. - [Delete Object Fields](/docs/utils/object/delete-fields): Creates a new object by removing specified properties from a source object. - [Pick Object Fields](/docs/utils/object/pick-fields): Creates a new object containing only the specified properties from a source object. - [Pick Object Fields By Condition](/docs/utils/object/pick-fields-by-condition): Creates a new object containing only the properties that satisfy a given condition. - [Remap Object Fields](/docs/utils/object/remap-fields): Transforms an object's structure by mapping properties to new names according to a provided field mapping. - [Extract Object Keys](/docs/utils/object/extract-object-keys): Extracts the keys of an object with proper typing at the top-level or recursively. - [Extract Object Entries](/docs/utils/object/extract-object-entries): Extracts the top-level entries of an object as key-value pairs with proper typing. - [Extract New Fields](/docs/utils/object/extract-new-fields): Extracts only the new fields that exist in an updated object but not in a base object, recursively including nested fields. - [Extract Updated Fields](/docs/utils/object/extract-updated-fields): Extracts only the fields that have changed between two objects, recursively including deep/nested changes. - [Extract Updated & New Fields](/docs/utils/object/extract-updated-and-new-fields): Identifies both changed and newly added fields between two objects, recursively including deep/nested changes. - [Flatten Object Dot Notation](/docs/utils/object/flatten-object-dot-notation): Converts a nested object structure into a flat object using dot notation for keys. - [Flatten Object Key Value](/docs/utils/object/flatten-object-key-value): Recursively flattens a nested object structure into a single-level object while preserving leaf values. - [Merge Objects](/docs/utils/object/merge-objects): Deeply merges two or more objects using an efficient key-value storage and conflict resolution strategy. - [Merge And Flatten Objects](/docs/utils/object/merge-and-flatten-objects): Deeply merges multiple objects and flattens the resulting structure using dot notation. - [Parse JSON To Object](/docs/utils/object/parse-json-to-object): Safely parses a JSON string into an object with optional primitive value conversion. - [Parse Object Values](/docs/utils/object/parse-object-values): Recursively converts stringified primitive values within objects and arrays to their proper types (boolean, number, null, etc.). - String Utilities - [String Utilities](/docs/utils/string): Utilities for string operations and manipulations in TypeScript/JavaScript. - [Capitalize String](/docs/utils/string/capitalize-string): Converts the first letter of a given string to uppercase while keeping the rest lowercase (unless otherwise specified). - [Convert String Cases](/docs/utils/string/convert-string-case): Converts a string into common case styles (camelCase, snake_case, PascalCase, etc.) with advanced handling. - [Typed Case Converters](/docs/utils/string/typed-case-converters): Utilities that convert strings into various case formats while preserving TypeScript string literal types. - [Format Unit With Plural](/docs/utils/string/format-unit-with-plural): Formats a grammatically correct unit string (using basic 's' suffix rules) based on a count. - [Manage Noun Forms](/docs/utils/string/pluralizer): Shared pre-configured instance of the Pluralizer class for English noun singular/plural conversions. - [Manage Verb Forms](/docs/utils/string/verbalizer): Shared pre-configured instance of the Verbalizer class for English verb conjugations. - [HTML to Text](/docs/utils/string/html-to-text): Convert HTML strings into plain text with customizable options. - [Markdown to Text](/docs/utils/string/markdown-to-text): Convert Markdown strings into plain text with customizable options. - [Natural Sort](/docs/utils/string/natural-sort): Compares two strings using natural sorting order. - [Count Words in String](/docs/utils/string/count-words): Counts the number of words in a string, supporting multiple languages and scripts. - [Extract Emails](/docs/utils/string/extract-emails): Extracts all email addresses from a given input string. - [Extract Numbers](/docs/utils/string/extract-numbers): Extracts all numeric substrings from a given string and returns them as an array of numbers. - [Extract URLs](/docs/utils/string/extract-urls): Extracts all HTTP and HTTPS web URLs from a given input string. - [Generate Anagrams](/docs/utils/string/generate-anagrams): Generates unique anagrams of a given word, with support for limits and dictionary filtering. - [Generate Random ID](/docs/utils/string/generate-random-id): Generates a customizable random alphanumeric ID with optional prefixes, suffixes, timestamps, and case formats. - [Get Levenshtein Distance](/docs/utils/string/get-levenshtein-distance): Computes the Levenshtein distance between two strings. - [Mask String](/docs/utils/string/mask-string): Masks a portion of a string for privacy while allowing specified characters at the beginning and/or end to remain visible. - [Normalize String](/docs/utils/string/normalize-string): Removes diacritics (accent marks) from characters to produce a normalized ASCII version of the string. - [Replace All in String](/docs/utils/string/replace-all-in-string): Replaces all occurrences of a specified substring or pattern in an input string. - [Reverse String](/docs/utils/string/reverse-string): Reverses the characters of a given string. - [Slugify String](/docs/utils/string/slugify-string): Converts a string into a URL-friendly slug by lowercasing and replacing non-alphanumeric characters with dashes. - [String Diff Utilities](/docs/utils/string/string-diff): Line-based and character-level text diffing utilities for comparing strings and highlighting differences. - [Trim String(s)](/docs/utils/string/trim-string): Removes unnecessary spaces from a string or an array of strings. - [Truncate a String](/docs/utils/string/truncate-string): Shortens a string to a specified maximum length and appends an ellipsis if truncation occurs. - Classes - [Classes](/docs/classes): Explore well-crafted classes for encapsulating complex problems and operations. - Color - [Color](/docs/classes/color): The Color class provides a robust way to work with colors in various formats, color manipulation, blending, and accessibility checks. - [Protocol Methods](/docs/classes/color/protocol-methods): Built-in protocol methods for string coercion, JSON serialization, and primitive conversion of Color instances. - [Color Manipulation Methods](/docs/classes/color/manipulation): Learn how to darken, lighten, desaturate, and blend colors with the Color class. - [Contrast & Accessibility](/docs/classes/color/contrast-accessibility): Check WCAG ratings, contrast ratios, and color brightness using the Color class. - [Color Scheme Methods](/docs/classes/color/scheme-generation): Generate complementary, analogous, triadic, tetradic color schemes, and custom-sized palettes with the Color class. - [Static Validation Checks](/docs/classes/color/static-validation): Validate CSS named colors and hex, RGB, and HSL formats using the Color class. - [Converter](/docs/classes/converter): Converter class for robust, type-safe measurement conversion across time, length, data, temperature, mass, area, and volume. - [Pluralizer](/docs/classes/pluralizer): Low-level API for English noun pluralization and singularization with support for irregular forms, uncountable nouns, and custom rules. - [Verbalizer](/docs/classes/verbalizer): Low-level API for English verb conjugation between base, past tense, and past participle forms with support for irregular verbs and custom rules. - [HttpStatus](/docs/classes/http-status): The HttpStatus class provides a comprehensive, type-safe API for managing HTTP status codes with rich metadata. - Paginator - [Paginator](/docs/classes/paginator): The Paginator class provides pagination options with automatic safety clamping. - [Page Navigation Methods](/docs/classes/paginator/page-navigation): Methods for navigating between pages, checking boundaries, and generating page lists. - [Calculation Methods](/docs/classes/paginator/calculation-methods): Methods for calculating pagination offsets, total pages, and metadata. - [Instance Creation Methods](/docs/classes/paginator/instance-creation): Methods for creating new Paginator instances with modified parameters. - [Utility Methods](/docs/classes/paginator/utility-methods): Utility methods for validating page numbers. - [Static Methods](/docs/classes/paginator/static-methods): Static factory methods for creating Paginator instances. - [LogStyler](/docs/classes/log-styler): The LogStyler class provides a low-level API to style console output with ANSI escape codes (Node.js) or CSS styles (browser). - [Cipher](/docs/utils/hash/Cipher) - [Signet](/docs/utils/hash/Signet) - [TextCodec](/docs/utils/hash/TextCodec) - [Currency](/docs/classes/currency): Currency class for locale-specific currency formatting and Frankfurter API-based currency conversion. - Finder - [Finder](/docs/classes/finder): Optimized array searching utility with support for binary search, fuzzy matching, and smart caching. - [Find One Item](/docs/classes/finder/find-one): Finds the first item matching specified criteria using optimized search strategies. - [Find All Items](/docs/classes/finder/find-all): Finds all items matching specified criteria using optimized search strategies. - [Find One Item Async](/docs/classes/finder/find-one-async): Asynchronously finds the first matching item using the same search strategies as findOne(). - [Find All Items Async](/docs/classes/finder/find-all-async): Asynchronously retrieves all items matching the specified criteria, supporting the same search strategies as findAll. - [Fuzzy Search](/docs/classes/finder/fuzzy-search): Performs a fuzzy search by matching characters in sequence against array elements. - [Binary Search](/docs/classes/finder/binary-search): Performs a binary search on a sorted array using a custom key selector function. - [Clear Cache](/docs/classes/finder/clear-cache): Manages the internal cache of search results by either clearing a specific cache entry or purging all cached data. - Unit - [Unit](/docs/classes/unit): A comprehensive unit conversion utility supporting conversions between various measurement systems including length, mass, temperature, volume, area, speed, time, digital storage, power, energy, pressure, and frequency. - [Area Conversions](/docs/classes/unit/area-conversions): Static methods for converting between area units — square meters, square feet, square kilometers, and square inches. - [Digital Storage Conversions](/docs/classes/unit/digital-storage): Static methods for converting between digital storage units — bytes, KB, MB, GB, and TB. - [Energy Conversions](/docs/classes/unit/energy-conversions): Static methods for converting between energy units — joules, calories, and kilojoules. - [Frequency Conversions](/docs/classes/unit/frequency-conversions): Static methods for converting between frequency units — hertz, kilohertz, and megahertz. - [Instance Methods](/docs/classes/unit/instance-methods): Instance methods for the Unit class including string representation, prefix conversion, and generic unit conversion. - [Length Conversions](/docs/classes/unit/length-conversions): Static methods for converting between length units — meters, feet, kilometers, miles, centimeters, and millimeters. - [Mass & Weight Conversions](/docs/classes/unit/mass-weight): Static methods for converting between mass and weight units — kilograms, pounds, grams, and ounces. - [Power Conversions](/docs/classes/unit/power-conversions): Static methods for converting between power units — watts and kilowatts. - [Pressure Conversions](/docs/classes/unit/pressure-conversions): Static methods for converting between pressure units — atmospheres, pascals, and bar. - [Speed Conversions](/docs/classes/unit/speed-conversions): Static methods for converting between speed units — km/h and mph. - [Temperature Conversions](/docs/classes/unit/temperature-conversions): Static methods for converting between temperature units — Celsius, Fahrenheit, and Kelvin. - [Time Conversions](/docs/classes/unit/time-conversions): Static methods for converting between time units — seconds, minutes, hours, and days. - [Volume Conversions](/docs/classes/unit/volume-conversions): Static methods for converting between volume units — milliliters, liters, and gallons. - Guards - [Guards](/docs/guards): Predicates & Type Guards — Toolbox-X Documentation. - Array Guards: Type guards for array validation. - [Check Array Type](/docs/guards/array/is-array): Checks if a value is an array. - [Check Valid Array](/docs/guards/array/is-valid-array): Checks if a value is both an array and contains at least one element. - [Check Array of Type](/docs/guards/array/is-array-of-type): Validates that element(s) in an array match a specific type guard. - [Check Empty/Invalid Array](/docs/guards/array/is-invalid-or-empty-array): Checks if a value is an empty array or an array with only empty values. - Checker Functions: Predicate functions to check and compare values - [Check Deep Equality](/docs/guards/checkers/is-deep-equal): Performs deep comparison between two values (arrays, objects, and primitives) to determine if they are structurally and value-wise equal. - [Number Checkers](/docs/guards/checkers/number-checkers): Predicate functions to check/compare numbers. - [String Checkers](/docs/guards/checkers/string-checkers): Predicate functions to check/compare strings. - Date-Time Guards: Type guards for date and time validation. - [Check Date Object](/docs/guards/date-time/is-date): Validates if a value is a Date object. - [Check Date String](/docs/guards/date-time/is-date-string): Checks if the given value is a valid date string. - [Check Date-Like Objects](/docs/guards/date-time/is-date-like): Detect date-like objects from various date/time libraries - [Check Leap Year](/docs/guards/date-time/is-leap-year): Check if a year is a leap year. - [Check Time with Unit](/docs/guards/date-time/is-time-with-unit): Check whether the provided value is a valid time string with supported units. - [Check Timezone Identifiers](/docs/guards/date-time/is-timezone-id): Check whether provided value is a timezone identifier or not using native JS API or comprehensive TZ database. - [Check Formatted Time](/docs/guards/date-time/is-valid-time): Type guard that checks if a value is a valid time string in "HH:MM" format. - [Check UTC Offset](/docs/guards/date-time/is-valid-utc-offset): Type guard that checks if a value is a valid UTC offset string. - DOM Guards: Type guards for DOM elements validation. - [Check FormData](/docs/guards/dom/is-valid-form-data): Checks if a value is a valid non-empty FormData instance. - [Check File or Blob](/docs/guards/dom/is-file-or-blob): Checks if a given value is an instance of File or Blob. - [Check FileList](/docs/guards/dom/is-file-list): Checks if a value is a FileList instance. - [Check File Array](/docs/guards/dom/is-file-array): Checks if a value is an array of native File objects. - [Check CustomFileArray](/docs/guards/dom/is-custom-file-array): Checks if a value is an array of CustomFile objects. - [Check CustomFile](/docs/guards/dom/is-custom-file): Checks if a value is a CustomFile object. - [Check FileUpload](/docs/guards/dom/is-file-upload): Checks if a value is a FileUpload object. - [Check OriginFileObj](/docs/guards/dom/is-origin-file-obj): Checks if a value is an OriginFileObj for Ant-Design Upload component. - Function Guards: Type-safe utility functions for runtime type checking of functions. - [Check Function](/docs/guards/function/is-function): Determines if a value is a callable function. - [Check Method Descriptor](/docs/guards/function/is-method-descriptor): Checks if a property descriptor represents a method. - [Check Promise](/docs/guards/function/is-promise): Determines if a value is a Promise (thenable object). - [Check Functions Returning Promises](/docs/guards/function/is-returning-promise): Checks if a function returns a Promise. - Miscellaneous Guards: Type-safe utility functions for runtime type checking of miscellaneous values. - [Environment Guards](/docs/guards/misc/environment): Runtime type guards to check different environments. - [Object Type Guards](/docs/guards/misc/object): Collection of type-safe utility functions for runtime type checking of objects. - [String Format Guards](/docs/guards/misc/string-format): Runtime type guards to check different string formats. - Primitive Type Guards: Type-safe utility functions for runtime type checking of primitive values. - [Core Primitive Type Guards](/docs/guards/primitive/core): Runtime type checking of core primitive values. - [Composite Type Guards](/docs/guards/primitive/composite): Runtime type guards to validate composite primitive values. - [Nullish Type Checkers](/docs/guards/primitive/nullish): Runtime type guards to validate nullish values. - [Numeric Type Guards](/docs/guards/primitive/numeric): Runtime type guards to validate numeric values. - Types - [Types](/docs/types): Comprehensive collection of TypeScript types to accelerate your development workflow. - [Utility Types](/docs/types/utility-types): Type helpers for advanced type manipulation, branding, key extraction, dot-notation, and literal/union types. - [Common Types](/docs/types/common-types): Ready-to-use primitive, function, date, time, color and utility object types. - [Constants](/docs/constants): Ready-to-use constants for timezone, calendar, zodiac, colors, countries, currency, and HTTP status. - **Recent Changes** - [Changelog](/docs/changelog): All notable changes to the package.