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

Function addObjectToProperties

packages/shared/ReactPerformanceTrackProperties.js:52–64  ·  view source on GitHub ↗
(
  object: Object,
  properties: Array<[string, string]>,
  indent: number,
  prefix: string,
)

Source from the content-addressed store, hash-verified

50}
51
52export function addObjectToProperties(
53 object: Object,
54 properties: Array<[string, string]>,
55 indent: number,
56 prefix: string,
57): void {
58 for (const key in object) {
59 if (hasOwnProperty.call(object, key) && key[0] !== '_') {
60 const value = object[key];
61 addValueToProperties(key, value, properties, indent, prefix);
62 }
63 }
64}
65
66export function addValueToProperties(
67 propertyName: string,

Callers 8

logComponentRenderFunction · 0.90
logComponentAbortedFunction · 0.90
logComponentErroredFunction · 0.90
logComponentAwaitFunction · 0.90
logIOInfoFunction · 0.90
logComponentErroredFunction · 0.90
addValueToPropertiesFunction · 0.85

Calls 1

addValueToPropertiesFunction · 0.85

Tested by

no test coverage detected