Javascript Array reverseArray()

Description

Javascript Array reverseArray()


Array.prototype.reverseArray = function() {
    const array = this.slice()//from  www  . j  a  va  2  s.  c om
    return array.reverse()
}



PreviousNext

Related