MCPcopy Create free account
hub / github.com/Starcounter-Jack/JSON-Patch / shallowObj

Function shallowObj

test/spec/duplexBenchmark.js:119–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 const depth = 10;
118
119 function shallowObj() {
120 return {
121 shallow: {
122 firstName: 'Tomek',
123 lastName: 'Wytrebowicz',
124 mobileNumbers: [
125 {
126 number: '12345'
127 },
128 {
129 number: '45353'
130 }
131 ]
132 }
133 };
134 }
135 const obj = shallowObj();
136 const node = obj;
137 while (depth-- > 0) {

Callers 1

duplexBenchmark.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected