* Copy specified fields from the source object to the destination object. * @param {Object} source * @param {Object} destination * @param {string[]} fields
(source, destination, fields)
| 55 | * @param {string[]} fields |
| 56 | */ |
| 57 | function copyFields(source, destination, fields) { |
| 58 | for (const field of fields) { |
| 59 | destination[field] = source[field]; |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | const DEP_FIELDS = ['dependencies', 'devDependencies', 'optionalDependencies']; |
| 64 |
no outgoing calls
no test coverage detected