xdash / asError
Function: asError()
asError(
value
):Error
Converts a value to an error.
Parameters
• value: unknown
value to convert
Returns
Error
the value as an error
xdash / asError
asError(
value
):Error
Converts a value to an error.
• value: unknown
value to convert
Error
the value as an error