I have to clone an array with some objects inside. I tried "JSON.parse(JSON.stringify)" and thirdParty Plugin Lodash, but both are return a empty result. Do i have the wrong data to clone ?
The Function looks so:
currentObject: any[];
addPropertiesToDisplay() {
console.log(this.analyseFacade.householdService.currentObject);
this.currentObject = _cloneDeep(this.analyseFacade.householdService.currentObject);
console.log(this.currentObject);
}
the console.log shows this