Function toNonEmptyString

Returns x if x is a string and not empty, otherwise returns undefined.

  • Parameters

    • x: unknown

    Returns undefined | string