Function toNonEmptyArray

Returns x if x is an array and has at least one element, otherwise returns undefined.

  • Type Parameters

    • T

    Parameters

    • x: T[]

    Returns undefined | T[]