would show you how to clone a list or keep a copy of an old list (array , object , etc ) , would also explain how to convert a javascript object into a json string and convert a json string into a javascript object
Using json.stringify() alone good but it can’t save unsupported data ,
json.stringify() takes in a javascript object and turns it into a json string or we can say it’s a way to change a list(array , object , etc) into a string that could be easily printed to the screen ,
var keepacopy = json.stringify(arry);
this is an example above , it could keep a copy but some stuffs might not be supported, The solution is to use is
json.parse(json.stringift ()) ,
var keepacopy =
json.parse(json.stringify(arry));
all thought it takes little time but it helps converted unsupported data into supported data .
json.parse takes a json string and change into a java script object.
please help like article on medium and follow me @abodmicheal