array reverse function for object array code example Example: reverse array javascript var rev = arr.reverse();