Function toTrue

Returns true if x is true, otherwise returns undefined.

  • Parameters

    • x: unknown

    Returns undefined | true