@epikodelabs/streamix / src/public-api / normalizeError
Function: normalizeError()
normalizeError(
err):Error
Defined in: projects/libraries/streamix/src/lib/utils/helpers.ts:85
Safely normalizes any thrown/rejected value to an Error instance. Preserves real Error instances (and their stack traces); otherwise wraps primitives and objects in new Error(String(err)).
Parameters
err
any
Returns
Error