Reverses the given array
Optional
the arrays to inspect
the starting index, inclusive
the ending index, exclusive
reverse(undefined); // undefinedreverse(['foo', 'bar']); // ['bar', 'foo']reverse(['foo', 'bar'], 0, 1); // ['foo'] Copy
reverse(undefined); // undefinedreverse(['foo', 'bar']); // ['bar', 'foo']reverse(['foo', 'bar'], 0, 1); // ['foo']
Reverses the given array