compact method

Iterable<T> compact()

Filters out all null values from Iterable.

[1, 2, null, 3].compact(); // [1, 2, 3]

Implementation

Iterable<T> compact() => whereType<T>();