I just need to copy the value of data.notes. I have used below code. But still detailsOfCurrentNotes value changes according to the value of data.notes. So could you tell me how to do this?
notes :Note[]
 const detailsOfCurrentNotes = Object.assign({}, data.notes);
 //here data.notes changes
 // detailsOfCurrentNotes also get that value
 
     
    