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

Function emptyTarget

docs/app/js/sanddance-app.js:6907–6909  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

6905 return value.$$typeof === REACT_ELEMENT_TYPE;
6906}
6907function emptyTarget(val) {
6908 return Array.isArray(val) ? [] : {};
6909}
6910function cloneUnlessOtherwiseSpecified(value, options) {
6911 return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
6912}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected