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

Function clone

test/fixtures/snapshot/typescript.js:1593–1601  ·  view source on GitHub ↗
(object)

Source from the content-addressed store, hash-verified

1591 }
1592 ts.group = group;
1593 function clone(object) {
1594 var result = {};
1595 for (var id in object) {
1596 if (hasOwnProperty.call(object, id)) {
1597 result[id] = object[id];
1598 }
1599 }
1600 return result;
1601 }
1602 ts.clone = clone;
1603 /**
1604 * Creates a new object by adding the own properties of `second`, then the own properties of `first`.

Callers

nothing calls this directly

Calls 2

callMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…