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
+11 -11
View File
@@ -3,17 +3,17 @@
// of the ISC license. See the LICENSE file for details.
/**
@name isObject
@signature isObject (value: any): boolean
@summary Tests for an `object`.
@description
Checks to see if the input value is a JavaScript object.
@example
import { isObject } from '@polkadot/util';
isObject({}); // => true
isObject('something'); // => false
*/
* @name isObject
* @signature isObject (value: any): boolean
* @summary Tests for an `object`.
* @description
* Checks to see if the input value is a JavaScript object.
* @example
* import { isObject } from '@polkadot/util';
*
* isObject({}); // => true
* isObject('something'); // => false
*/
export default function isObject (value: any): value is object {
return typeof value === 'object';
}