Type guard for Node.js system errors (e.g., ENOENT, EACCES). These errors have a code property with a string error code. Note: Avoids instanceof check which can fail across async/Jest realms.
code
Type guard for Node.js system errors (e.g., ENOENT, EACCES). These errors have a
codeproperty with a string error code. Note: Avoids instanceof check which can fail across async/Jest realms.