Relative Content

Tag Archive for arraysslicereverse

How to keep original array in this case?

When i console.log the results i get that the original array has changed. I cant find why? I did slice().reverse() to save the original but it doesnt work. If i edit this code so its 1D array it works well and the original array is unchanged.