arrayToDType = (array) => {
  let arrayDType;

  // eslint-disable-next-line
  for (const el of array) {
    arrayDType = elementToDType(el);

    if (arrayDType.dtype !== int && arrayDType.dtype !== float && arrayDType.dtype !== datetime)
      break;
  }

  return arrayDType;
}
Returns the DType of an array

@param array
@returns {DType}