Files
NativeScript/nativescript-core/utils/module-merge.ts
Nathan Walker da3c0b973d chore: format
2020-07-11 11:01:40 -07:00

8 lines
391 B
TypeScript

// This method iterates all the keys in the source exports object and copies them to the destination exports one.
// Note: the method will not check for naming collisions and will override any already existing entries in the destination exports.
export function merge(sourceExports: any, destExports: any) {
for (let key in sourceExports) {
destExports[key] = sourceExports[key];
}
}