index.js
function toArray(line, delimiter) {
  var arr = line
    .split(delimiter)
    .filter(Boolean)
  return arr
}
function toArray(line, delimiter) {
  var arr = line
    .split(delimiter)
    .filter(Boolean)
  return arr
}
function toArray ( line , delimiter ) { var arr = line . split ( delimiter ) . filter ( Boolean ) return arr }
Parse a string into an array by splitting it
at `delimiter` and filtering out empty values.

@param  {String}        line
@param  {String|RegExp} delimiter
@return {Array}

@api private
Parse a string into an array by splitting it at delimiter and filtering out empty values .