An utility function to stringify an Error or DOMException object.
$ npm i @peassoft/error-stringifyimport { stringifyError } from '@peassoft/error-stringify';
const myError = new Error('message');
const result: string = stringifyError(myError);Stringify an Error or DOMException object.