Making an independent copy of a reversed array in JavaScript

前端 未结 5 1703
故里飘歌
故里飘歌 2021-01-15 15:50

Here is my fiddle: http://jsfiddle.net/sepoto/Zgu9J/1/

I\'m starting with a reverse function:

function reverseArr(input) {
    var ret = new Array;
          


        
5条回答
提交回复
热议问题