Array exchange position

// Array exchange position 
    arrayElemSwapPosition (ARR, of indexA, indexB are) {
       var $ the this = the this arr.splice (of indexA,. 1, ... arr.splice (indexB are,. 1, ARR [of indexA])) 
the console.log (ARR) }

 

Guess you like

Origin www.cnblogs.com/vae860514/p/11586312.html