If you want/need to not use ES6 stuff you would simply use a standard for loop.
// Old javascriptfunctioncloneDeeply(arrayToClone){varnewArray=[];for(vari=0;i<arrayToClone.length;i++){if(arrayToClone[i].isArray){cloneDeeply(arrayToClone[i])}else{newArray.push(arrayToClone[i])}}returnnewArray;}// Then to use itvarclone=cloneDeeply(yourArrayToCloneGoesHere);
I didn't test this or anything btw just writing an example off of the top of my head, so no promises lol
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you want/need to not use ES6 stuff you would simply use a standard for loop.
I didn't test this or anything btw just writing an example off of the top of my head, so no promises lol