It will determine whether the provided value is an Error or not.
value
1.0.0
isError(new Error("error"));// => true Copy
isError(new Error("error"));// => true
isError(new RangeError("error"));// => true Copy
isError(new RangeError("error"));// => true
isError(2);// => false Copy
isError(2);// => false
It will determine whether the provided
value
is an Error or not.