basant307/AI_Governance_Project
048
1function isPlainObject(value) {2 if (!value || typeof value !== 'object') {3 return false;4 }5 const proto = Object.getPrototypeOf(value);6 const hasObjectPrototype = proto === null ||7 proto === Object.prototype ||8 Object.getPrototypeOf(proto) === null;9 if (!hasObjectPrototype) {10 return false;11 }12 return Object.prototype.toString.call(value) === '[object Object]';13}14 15export { isPlainObject };16 