Use `.length = 0` instead of creating a new array.