UNPKG

@kernel-js/support

Version:

Support package for Kernel Framework

20 lines (16 loc) 707 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /** * Check if value is of object type. * * @param {*} value * @returns {boolean} */ var isObject = function isObject(value) { return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && Object.prototype.toString.call(value) === '[object Object]'; }; exports.default = isObject; module.exports = exports['default'];