re: Typical JavaScript interview exercises (explained) VIEW POST

VIEW FULL DISCUSSION
 

deep copy this my approach!!!!
adding this line:
const hr=JSON.parse(JSON.stringify(heroes));
It's work fine

code of conduct - report abuse