Function toString

Returns x if x is a string, otherwise returns undefined.

  • Parameters

    • x: unknown

    Returns undefined | string