MCPcopy Create free account
hub / github.com/codecombat/codecombat / copy

Function copy

test/app/core/deltas.spec.js:25–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24 return describe('expandDelta', () => it('should not be confused by array index changes', function() {
25 const copy = x => JSON.parse(JSON.stringify(x));
26 const x = ([0, 1, 2, 3, 4, 5, 6, 7].map((y) => ({value: y, id: `ID:${y}`, squared: y*y})));
27 x[3].target = 1;
28 const x1 = copy(x);

Callers 1

deltas.spec.jsFile · 0.85

Calls 2

parseMethod · 0.80
stringifyMethod · 0.45

Tested by

no test coverage detected