UNPKG

510 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.isObject = void 0;
4/**
5 * @name isObject
6 * @summary Tests for an `object`.
7 * @description
8 * Checks to see if the input value is a JavaScript object.
9 * @example
10 * <BR>
11 *
12 * ```javascript
13 * import { isObject } from '@polkadot/util';
14 *
15 * isObject({}); // => true
16 * isObject('something'); // => false
17 * ```
18 */
19function isObject(value) {
20 return !!value && typeof value === 'object';
21}
22exports.isObject = isObject;