MCPcopy Create free account
hub / github.com/microsoft/SandDance / clone

Function clone

packages/vega-deck.gl/src/clone.ts:7–10  ·  view source on GitHub ↗
(objectToClone: T)

Source from the content-addressed store, hash-verified

5const deepmerge = ((_deepmerge as any).default || _deepmerge) as typeof _deepmerge;
6
7export function clone<T extends object>(objectToClone: T) {
8 if (!objectToClone) return objectToClone;
9 return deepmerge.all([objectToClone]) as T;
10}
11
12const dontMerge = (destination, source) => source;
13

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected