Function: isError()
isError(
value
:unknown
):value is Error
Defined in: shared/utils/typeGuards.ts:173
Determines if a value is an https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error
instance.
Parametersโ
valueโ
unknown
The value to check.
Returnsโ
value is Error
True if value
is an instance of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error
; otherwise, false.