This commit is contained in:
@@ -125,6 +125,26 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
///////////////////////////////
|
||||
// DEEP COPY FOR API UPDATE
|
||||
// Deep copy an object skipping all *Viz and named properties from object
|
||||
//
|
||||
deepCopySkip: function(source, skipNames) {
|
||||
if (skipNames == null) {
|
||||
skipNames = [];
|
||||
}
|
||||
let o = {};
|
||||
for (let key in source) {
|
||||
if (
|
||||
!key.endsWith("Viz") &&
|
||||
!skipNames.some(x => x == key) &&
|
||||
source.hasOwnProperty(key)
|
||||
) {
|
||||
o[key] = source[key];
|
||||
}
|
||||
}
|
||||
return o;
|
||||
},
|
||||
/**
|
||||
* Copy a string to clipboard
|
||||
* @param {String} string The string to be copied to clipboard
|
||||
|
||||
Reference in New Issue
Block a user