» compact Function

compact takes a list of strings and returns a new list with any empty string elements removed.

» Examples

> compact(["a", "", "b", "c"])
[
  "a",
  "b",
  "c",
]