Add tslint (#151)
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user