Advertisement
Ulabael

scrReverseArray()

Jul 23rd, 2022
890
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function scrReverseArray(array)
  2. {
  3.     if is_array(array)
  4.     {
  5.         var new_array = []
  6.         for (var i = array_length(array) - 1; i >= 0; --i)
  7.         {
  8.             array_push(new_array, array[i])
  9.         }
  10.         return new_array
  11.     }
  12.     else
  13.     {
  14.         return false   
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement