Skip to content

isNodeErrorWithCode

isNodeErrorWithCode(value, code): boolean

Defined in: packages/node/src/error/node-error.ts:30

Test if value is Node Error-like and has the specified code

unknown

The value to test

string

The error code to match

boolean

True if the value is Node Error-like and has the specified code