Use `array.length = 0` to clear arrays.