function arrayClear(array) {
  array.length = 0;
}
Clears the array by setting the length property to 0. This usually
works, and if it should turn out not to work everywhere, here would
be the place to implement the browser specific workaround.

@param {Array} array  Array to be cleared.