MCPcopy Create free account
hub / github.com/appium/appium / copyFields

Function copyFields

scripts/sync-monorepo-packages.mjs:57–61  ·  view source on GitHub ↗

* Copy specified fields from the source object to the destination object. * @param {Object} source * @param {Object} destination * @param {string[]} fields

(source, destination, fields)

Source from the content-addressed store, hash-verified

55 * @param {string[]} fields
56 */
57function copyFields(source, destination, fields) {
58 for (const field of fields) {
59 destination[field] = source[field];
60 }
61}
62
63const DEP_FIELDS = ['dependencies', 'devDependencies', 'optionalDependencies'];
64

Callers 1

syncPackageJsonFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected