Clears an array in-place, removing all elements and filling with null before truncation.
The array to clear
The cleared array
const arr = [1, 2, 3];clear(arr); // arr is now [] Copy
const arr = [1, 2, 3];clear(arr); // arr is now []
Clears an array in-place, removing all elements and filling with null before truncation.