getFilterValsFromProps = (segmentFilters, featureMeta) => {
  const filterVals = segmentFilters.map(
    segmentFilter => segmentFilter[0].value
  );
  if (isValidFilterVals(filterVals, featureMeta)) {
    return filterVals;
  }
  const {type, domain} = featureMeta;
  if (type === FEATURE_TYPE.CATEGORICAL) {
    return [[], []];
  } else if (type === FEATURE_TYPE.NUMERICAL) {
    const min = domain[0];
    const max = domain[domain.length - 1];
    return [[min, undefined], [undefined, max]];
  }
}
determin whether segment filters values are valid
@param  {[[object]]} segmentFilters - of array of filters, attributes: {name, key, type, value}]
@param  {[array]} featureMeta - feature to segment on, attributes: {name, tableFieldIndex, type, domain}]
@return {array} - filterVals `value` field of each segmentFilter