MCPcopy Index your code
hub / github.com/nodejs/node / createCircularObject

Function createCircularObject

test/parallel/test-assert-partial-deep-equal.js:10–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8const x = ['x'];
9
10function createCircularObject() {
11 const obj = {};
12 obj.self = obj;
13 obj.set = new Set([x, ['y']]);
14 return obj;
15}
16
17function createDeepNestedObject() {
18 return { level1: { level2: { level3: 'deepValue' } } };

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…