Generate a code to reverse the order of an array.
const arr = [3, 2, 1];
const reverseArray = arr => arr.reverse();
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Generate a code to reverse the order of an array.

### Response:
const reverseArray = arr => arr.reverse();