MCPcopy
hub / github.com/facebook/react / isPlainObject

Function isPlainObject

packages/react-devtools-shared/src/utils.js:1223–1229  ·  view source on GitHub ↗
(object: Object)

Source from the content-addressed store, hash-verified

1221
1222// Basically checking that the object only has Object in its prototype chain
1223export const isPlainObject = (object: Object): boolean => {
1224 const objectPrototype = Object.getPrototypeOf(object);
1225 if (!objectPrototype) return true;
1226
1227 const objectParentPrototype = Object.getPrototypeOf(objectPrototype);
1228 return !objectParentPrototype;
1229};
1230
1231export function backendToFrontendSerializedElementMapper(
1232 element: SerializedElementBackend,

Callers 3

utils-test.jsFile · 0.90
getDataTypeFunction · 0.85
formatDataForPreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected