@visulima/error
Version:
Error with more than just a message, stacktrace parsing.
10 lines (8 loc) • 366 B
JavaScript
function isPlainObject(value) {
if (typeof value !== "object" || value === null) {
return false;
}
const prototype = Object.getPrototypeOf(value);
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
}
export { isPlainObject as i };