Files
Iliyan Angelov c67067a2a4 Mail
2025-09-14 23:24:25 +03:00

9 lines
344 B
JavaScript

export default 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);
}