Add tslint (#151)

This commit is contained in:
Jaco Greeff
2018-06-27 10:15:46 +02:00
committed by GitHub
parent 499a877f15
commit 73477a2809
134 changed files with 989 additions and 884 deletions
+10 -10
View File
@@ -3,16 +3,16 @@
// of the ISC license. See the LICENSE file for details.
/**
@name isInstanceOf
@signature isInstanceOf (value: any, clazz: Class<any>): boolean
@summary Tests for a instance of a class.
@description
Checks to see if the input value is an instance of the test class.
@example
import { isInstanceOf } from '@polkadot/util';
console.log('isInstanceOf', isInstanceOf(new Array(0), Array)); // => true
*/
* @name isInstanceOf
* @signature isInstanceOf (value: any, clazz: Class<any>): boolean
* @summary Tests for a instance of a class.
* @description
* Checks to see if the input value is an instance of the test class.
* @example
* import { isInstanceOf } from '@polkadot/util';
*
* console.log('isInstanceOf', isInstanceOf(new Array(0), Array)); // => true
*/
export default function isInstanceOf (value: any, clazz: any): boolean {
return value instanceof clazz;
}