How to verify whether an element is displayed on a webpage or not using Protractor?

To verify whether an element is displayed on a webpage or not, we use isDisplayed() method in Protractor. isDisplayed() method returns a Boolean value based on the state of the element in a webpage. It returns true if the element is displayed and false if the element is not displayed.