Function isBool

  • Checks if the provided value is a boolean.

    Parameters

    • val: unknown

      The value to check.

    Returns val is boolean

    Returns true if the value is a boolean, false otherwise.