I have explored using Object.assign(), Object.create(), and Object.hasOwnProperty() methods, but they all seem to create an empty object within my object and copy the same reference. This approach is not efficient in terms of resources and memory usage.
Does anyone have any suggestions or alternatives?
listTypes = GWStypes["name_attr_JSON"];
var objectClone = JSON.parse(JSON.stringify(listTypes));
MMSignalsObject[signalName] = objectClone;