code: public static <T> T[] newArray(T[] reference, int length) {
      return Platform.newArray(reference, length);
    }
docs: Returns a new array of the given length with the same type as a reference array.
  
  @param reference any array of the desired type
  @param length the length of the new array