reduct/component

View on GitHub
src/utilities/isError.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Checks if the given argument is an instance of the Error Object.
 *
 * @param val {*} The argument which will be validated.
 * @returns {boolean}
 *
 */
export function isError(val) {
    return val instanceof Error;
}