@tetcoin/util
Version:
A collection of useful utilities for @tetcoin
16 lines (15 loc) • 409 B
TypeScript
/**
* @name isInstanceOf
* @summary Tests for a instance of a class.
* @description
* Checks to see if the input value is an instance of the test class.
* @example
* <BR>
*
* ```javascript
* import { isInstanceOf } from '@tetcoin/util';
*
* console.log('isInstanceOf', isInstanceOf(new Array(0), Array)); // => true
* ```
*/
export default function isInstanceOf(value: any, clazz: any): boolean;