index.js
function compact (arr) {
  var idx = -1
  var end = arr.length
  var out = []

  while (++idx < end) {
    if (arr[idx]) out.push(arr[idx])
  }

  return out
}
function compact (arr) {
  var idx = -1
  var end = arr.length
  var out = []

  while (++idx < end) {
    if (arr[idx]) out.push(arr[idx])
  }

  return out
}
function compact ( arr ) { var idx = - 1 var end = arr . length var out = [ ] while ( ++ idx < end ) { if ( arr [ idx ] ) out . push ( arr [ idx ] ) } return out }
Drop empty values from array.

@param  {Array} array
Array of strings.

@return {Array}
Array of strings (empty values dropped).
Drop empty values from array .