MCPcopy Create free account
hub / github.com/Lobos/react-ui / stripComplexValues

Function stripComplexValues

docs/lib/react.js:9417–9426  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

9415}
9416
9417function stripComplexValues(key, value) {
9418 if (typeof value !== 'object' || Array.isArray(value) || value == null) {
9419 return value;
9420 }
9421 var prototype = Object.getPrototypeOf(value);
9422 if (!prototype || prototype === Object.prototype) {
9423 return value;
9424 }
9425 return '<not serializable>';
9426}
9427
9428// This implementation of ReactPerf is going away some time mid 15.x.
9429// While we plan to keep most of the API, the actual format of measurements

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…