computeDataType = data => {
  for (var i = 0; i < data.length; i += 1) {
    if (!NULL_VALS.includes(data[i])) {
      break;
    }
  }
  if (i >= data.length) {
    return null;
  }
  switch (typeof data[i]) {
    case 'number':
      if (Number.isInteger(data[i])) {
        return DATA_TYPE.INTEGER;
      } else {
        return DATA_TYPE.REAL;
      }
    case 'boolean':
      return DATA_TYPE.BOOLEAN;
    case 'string':
      return DATA_TYPE.STRING;
    default:
      return null;
  }
}
get data type of feature values
@param {Array} data feature values
@returns {String} one of kepler data types https://github.com/keplergl/kepler.gl/blob/master/src/constants/default-settings.js#L259