UNPKG

419 BTypeScriptView Raw
1/**
2 * @name isInstanceOf
3 * @summary Tests for a instance of a class.
4 * @description
5 * Checks to see if the input value is an instance of the test class.
6 * @example
7 * <BR>
8 *
9 * ```javascript
10 * import { isInstanceOf } from '@polkadot/util';
11 *
12 * console.log('isInstanceOf', isInstanceOf(new Array(0), Array)); // => true
13 * ```
14 */
15export declare function isInstanceOf(value: unknown, Clazz: Function): boolean;