Checks if two Error objects are the same.
Error
The first value to compare.
The reference Error.
true if the errors are the same, false otherwise.
true
false
if ref is not an Error.
ref
Checks if two
Errorobjects are the same.