I have a function where i loop through 2 arrays and do some logic. My issue is when i change one of the object properties in the array, they also change my base object variable and all other objects in the entire of both arrays. Even though i only want to edit specific objects properties. I dont want to paste the entire code so i will show you my vital function but also leave a link to my entire code.I have a function where i loop through 2 arrays