function toArray(arg) {
  return typeof arg === "string" ? arg.split(",") : arg;
}
Deal with arguments being either an array or a string: return the array
intact if it's the former, and convert it to an array if it's a string
@param  {Array|String} arg
@returns {Array}