# isEvalError > Test if a value is an [EvalError][mdn-eval-error] object.
## Usage ```javascript var isEvalError = require( '@stdlib/assert/is-eval-error' ); ``` #### isEvalError( value ) Tests if a `value` is an [`EvalError`][mdn-eval-error] object. ```javascript var bool = isEvalError( new EvalError( 'beep' ) ); // returns true ```
## Notes - This function should **not** be considered robust. While the function should **always** return `true` if provided an [`EvalError`][mdn-eval-error] (or a descendant) object, false positives may occur due to the fact that the [`EvalError`][mdn-eval-error] constructor inherits from [`Error`][mdn-error] and has no internal class of its own. Hence, [`EvalError`][mdn-eval-error] impersonation is possible.
## Examples ```javascript var isEvalError = require( '@stdlib/assert/is-eval-error' ); var bool = isEvalError( new EvalError( 'eval error' ) ); // returns true bool = isEvalError( new Error( 'error' ) ); // returns false bool = isEvalError( new RangeError( 'range error' ) ); // returns false bool = isEvalError( new ReferenceError( 'reference error' ) ); // returns false bool = isEvalError( new SyntaxError( 'syntax error' ) ); // returns false bool = isEvalError( new TypeError( 'type error' ) ); // returns false bool = isEvalError( new URIError( 'URI error' ) ); // returns false bool = isEvalError( {} ); // returns false bool = isEvalError( null ); // returns false ```