* 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 )
| 32 | * @returns {Object} object copy |
| 33 | */ |
| 34 | function copy( obj ) { |
| 35 | return JSON.parse( JSON.stringify( obj ) ); |
| 36 | } |
| 37 | |
| 38 | |
| 39 | // EXPORTS // |
no outgoing calls
no test coverage detected
searching dependent graphs…