Error.isError

class Error {
  static isError(value: any): boolean;
}

CommonJS entry points

core-js/proposals/is-error

Warning

We have no bulletproof way to polyfill this Error.isError / check if the object is an error, so it's an enough naive implementation.