MCPcopy
hub / github.com/autoNumeric/autoNumeric / cloneObject

Method cloneObject

src/AutoNumericHelper.js:1320–1322  ·  view source on GitHub ↗

* This clone the given object, and return it. * WARNING: This does not do a deep cloning. * cf. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Examples * //TODO Add a `deep` option to clone object with more than one depth * * @

(obj)

Source from the content-addressed store, hash-verified

1318 * @returns {object}
1319 */
1320 static cloneObject(obj) {
1321 return Object.assign({}, obj);
1322 }
1323
1324 /**
1325 * Return a 'camelized' version of the given string.

Callers 3

updateMethod · 0.80
_serializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected