Function isBoolean

  • Checks if value is classified as a boolean primitive or object.

    Parameters

    • value: any

      The value to check.

    Returns value is boolean

    Returns true if value is a boolean, else false.

    5.5.0

    isBoolean(false)
    // => true

    isBoolean(null)
    // => false