mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Rename the files
This commit is contained in:
7
tns-core-modules/utils/module-merge.ts
Normal file
7
tns-core-modules/utils/module-merge.ts
Normal file
@ -0,0 +1,7 @@
|
||||
// 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 var merge = function (sourceExports: any, destExports: any) {
|
||||
for (var key in sourceExports) {
|
||||
destExports[key] = sourceExports[key];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user