UNPKG

@polkadot/util

Version:
23 lines (22 loc) 510 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isObject = void 0; /** * @name isObject * @summary Tests for an `object`. * @description * Checks to see if the input value is a JavaScript object. * @example * <BR> * * ```javascript * import { isObject } from '@polkadot/util'; * * isObject({}); // => true * isObject('something'); // => false * ``` */ function isObject(value) { return !!value && typeof value === 'object'; } exports.isObject = isObject;