• Drop all nil values from an array, or replaces them with another value.

    Type Parameters

    • T

    Parameters

    • nilables: Maybe<T>[]

      The subject to convert.

    • Optionalto: Maybe<T>

      The value to coalese to.

    Returns T[]

    An array with where all values are not nil.