cloneObject

Function
import { cloneObject } from "@esri/hub-common";
const original = { foo: "bar" }
const copy = cloneObject(original)
copy.foo // "bar"
copy === original // false

Make a deep clone, including arrays. Does not handle functions!

  • cloneObject(obj: ) :

Parameters

Parameter Type Default Notes
obj Required

Returns


Function defined in common/src/util.ts:15