UNPKG

617 BJavaScriptView Raw
1function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
2
3/**
4 * Return true if `value` is object-like. A value is object-like if it's not
5 * `null` and has a `typeof` result of "object".
6 */
7export default function isObjectLike(value) {
8 return _typeof(value) == 'object' && value !== null;
9}