Docs (4.0.0)
interface ViewportContext property

portrait

True if the viewport is taller than it is wide.

portrait: boolean

Related

  • interface ViewportContextInterface definition for an object that contains information about the user’s viewport, e.g. browser window.