Function parseOptionalString

  • Converts a string to an optional string.

    Parameters

    • s: string

      A string to parse.

    Returns string | undefined

    If s has non-zero length, s; otherwise, undefined.