MCPcopy Index your code
hub / github.com/stdlib-js/stdlib / copy

Function copy

etc/eslint/utils/copy.js:34–36  ·  view source on GitHub ↗

* Copies a JSON object. * * ## Notes * * - This function assumes a JSON-compatible input object, which is a valid assumption as we know that ESLint configuration files can be stored as JSON. * * @private * @param {Object} obj - object to copy * @returns {Object} object copy

( obj )

Source from the content-addressed store, hash-verified

32* @returns {Object} object copy
33*/
34function copy( obj ) {
35 return JSON.parse( JSON.stringify( obj ) );
36}
37
38
39// EXPORTS //

Callers 7

.eslintrc.tests.jsFile · 0.85
mergeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…