UNPKG

@tetcoin/util

Version:
16 lines (15 loc) 378 B
/** * @name isError * @summary Tests for a `Error` object instance. * @description * Checks to see if the input object is an instance of `Error`. * @example * <BR> * * ```javascript * import { isError } from '@tetcoin/util'; * * console.log('isError', isError(new Error('message'))); // => true * ``` */ export default function isError(value: any): value is Error;