Function toBoolean

  • Converts value to a boolean.

    Parameters

    • value: unknown

      The value to convert

    Returns boolean

    boolean