@apiref-examples/core/utils module
Utility functions and helpers.
Functions
assert function
Assert that a condition is true, throwing an error if not.
bytes function
Converts bytes to a human-readable string with appropriate units (KB, MB, GB, etc.).
compose function
Compose multiple functions together.
debounce function
Debounce a function to prevent rapid successive calls.
deepMerge function
Deep merge two objects recursively.
groupBy function
Group array items by a property or function.
isDefined function
Type guard for checking if a value is defined (not null or undefined).
isPromise function
Check if a value is a Promise.
memoize function
Create a memoized version of a function.
omit function
Omit specific properties from an object.
pick function
Pick specific properties from an object.
pipe function
Chain multiple async operations in sequence.
retry function
Retry an async operation with exponential backoff.
throttle function
Throttle a function to limit call frequency.