Asserts that an unknown value is an ErrorLike object, which guarantees that it's an object that has at least two string properties: a non-empty name and message.
name
message
If the value is not an ErrorLike object, an error is thrown.
an unknown value
Asserts that an unknown value is an ErrorLike object, which guarantees that it's an object that has at least two string properties: a non-empty
nameandmessage.If the value is not an ErrorLike object, an error is thrown.