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
@@ -5,16 +5,16 @@
import isInstanceOf from './instanceOf';
/**
@name isU8a
@signature isU8a (value: any): boolean
@summary Tests for a `Uint8Array` object instance.
@description
Checks to see if the input object is an instance of `Uint8Array`.
@example
import { isUint8Array } from '@polkadot/util';
console.log('isU8a', isU8a([])); // => false
*/
* @name isU8a
* @signature isU8a (value: any): boolean
* @summary Tests for a `Uint8Array` object instance.
* @description
* Checks to see if the input object is an instance of `Uint8Array`.
* @example
* import { isUint8Array } from '@polkadot/util';
*
* console.log('isU8a', isU8a([])); // => false
*/
export default function isU8a (value: any): value is Uint8Array {
return isInstanceOf(value, Uint8Array);
}