astro-ghostcms/.pnpm-store/v3/files/24/13b9e0109c2f4bdf17f4aaac55f...

20 lines
600 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function isObjectLike(value) {
return typeof value === 'object' && value !== null;
}
function isObject(input) {
if (!isObjectLike(input) || Object.prototype.toString.call(input) !== '[object Object]') {
return false;
}
if (Object.getPrototypeOf(input) === null) {
return true;
}
let proto = input;
while (Object.getPrototypeOf(proto) !== null) {
proto = Object.getPrototypeOf(proto);
}
return Object.getPrototypeOf(input) === proto;
}
exports.default = isObject;