MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / objToString

Function objToString

web/pgadmin/misc/properties/ObjectNodeProperties.jsx:47–51  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

45 let updatedData = ['table', 'partition'].includes(nodeType) && !_.isEmpty(nodeData.rows_cnt) ? {rows_cnt: nodeData.rows_cnt} : undefined;
46
47 const objToString = (obj) => (
48 (obj && typeof obj === 'object') ? Object.keys(obj).sort((a, b)=>a.localeCompare(b)).reduce(
49 (acc, key) => (acc + `${key}=` + objToString(obj[key])), ''
50 ) : String(obj)
51 );
52
53 const treeNodeId = objToString(treeNodeInfo);
54

Callers 1

ObjectNodePropertiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected