docs: function setArray(array, newArray) {
      error_if_values_are_not_arrays_1.errorIfValuesAreNotArrays([array, newArray]);
      // These 2 lines make sure any memory reference to array is not broken:
      array.length = 0;
      array.push.apply(array, newArray);
  }