MCPcopy
hub / github.com/clientIO/joint / initCloneObject

Function initCloneObject

packages/joint-core/src/util/utilHelpers.mjs:385–389  ·  view source on GitHub ↗
(object)

Source from the content-addressed store, hash-verified

383};
384
385const initCloneObject = (object) => {
386 return (typeof object.constructor == 'function' && !isPrototype(object))
387 ? Object.create(Object.getPrototypeOf(object))
388 : {};
389};
390
391const getSymbols = (object) => {
392 if (object == null) {

Callers 2

baseCloneFunction · 0.85
baseMergeDeepFunction · 0.85

Calls 2

isPrototypeFunction · 0.85
createMethod · 0.45

Tested by

no test coverage detected