@param  {String[]|String} values

@return {String[]}
485133
function resolveValues ( values ) {

	if ( Array.isArray(values) ) {
		return values;
	}

	return values.split(' ')
		.map(( value ) => {
			return value.trim();
		})
		.filter(( value ) => {
			return value !== '';
		});

}
389527
function normalize(value, callback) {
  if (!value) {
    return [];
  }

  if (!Array.isArray(value)) {
    value = [ value ];
  }

  return value.map(callback);
}
103412
private List<String> tail(List<String> values) {

        List<String> result = new ArrayList<String>();
        boolean first = true;
        for (String value : values) {
            if (!first) {
                result.add(value);
            }
            first = false;
        }
        return result;

    }
488333
public void selectByValue(String[] values) {
        for (int i = 0; i < values.length; i++) {
            selectByValue(values[i]);
        }
    }
1085485
public static Double[] wrap(double... values) {
		if (null == values) {
			return null;
		}
		final int length = values.length;
		if (0 == length) {
			return new Double[0];
		}

		final Double[] array = new Double[length];
		for (int i = 0; i < length; i++) {
			array[i] = Double.valueOf(values[i]);
		}
		return array;
	}
966164
function(values) {
          if (values.length < 3) {
            logger.tracef("Not enough to read (not array): %s", values);
            return undefined;
          }

          return {listenerId: values[0], isCustom: values[1] == 1, isRetried: values[2] == 1}
        }
1207526
static String[] toArray(JsArrayString values) {
        if (GWT.isScript()) {
            return reinterpretCast(values);
        } else {
            int length = values.length();
            String[] ret = new String[length];
            for (int i = 0, l = length; i < l; i++) {
                ret[i] = values.get(i);
            }
            return ret;
        }
    }
1245934
function() {
    var result = [];

    for (var i = 0; i < this.length; i++) {
      var value = this[i];
      if (Array.isArray(value)) {
        for (var j = 0; j < value.length; j++) {
          result.push(value[j]);
        }
      } else {
        result.push(value);
      }
    }

    return result;
  }
93195
function(values) {
          if (values.length < 2) {
            logger.tracef("Not enough to read (not array): %s", values);
            return undefined;
          }

          return {segments: values[0], count: values[1]}
        }
939986
public static short[] unWrap(Short... values) {
		if (null == values) {
			return null;
		}
		final int length = values.length;
		if (0 == length) {
			return new short[0];
		}

		final short[] array = new short[length];
		for (int i = 0; i < length; i++) {
			array[i] = values[i].shortValue();
		}
		return array;
	}
1154326
protected function parseArray(string $values): array
    {
        $parsed = empty($values) === false ? explode(' ', $values) : [];

        return $parsed;
    }
492768
public static <T> List<T> asArrayList(T[] values) {
    ArrayList<T> result = new ArrayList<T>();
    Collections.addAll(result, values);

    return result;
  }
828721
public static char[] unWrap(Character... values) {
		if (null == values) {
			return null;
		}
		final int length = values.length;
		if (0 == length) {
			return new char[0];
		}

		char[] array = new char[length];
		for (int i = 0; i < length; i++) {
			array[i] = values[i].charValue();
		}
		return array;
	}
443606
public static Object toPrimitiveIntArray(List<?> values)
    {
        int[] array = new int[values.size()];
        int cursor = 0;
        
        for(Object o : values)
        {
            array[cursor] = (Integer) o;
            cursor ++;
        }
        return array;
    }
1322828
public static Object toPrimitiveBoolArray(List<?> values)
    {
        boolean[] array = new boolean[values.size()];
        int cursor = 0;
        
        for(Object o : values)
        {
            array[cursor] = (Boolean) o;
            cursor ++;
        }
        return array;
    }
44406
private static List<String> resolveValues(final Iterable<? extends String> values) {
        final List<String> valuesList = new ArrayList<String>();

        for(final String value : values) {
            Validate.notNull(value, "One of the specified values was null");
            valuesList.add(value);
        }

        return valuesList;
    }
344890
function unwrapValues (values, objtypes) {
  var result = [];
  for(var i=0; i < objtypes.length; i++) result.push(unwrapValue(values[i], objtypes[i]));
  return result;
}