Skip to main content

getWinSize

Retrieves the outerWidth and outerHeight of current window.

See Window at mdn to know about these values.

getWinSize()

Returns#

  • A map with keys:
    • width: A number. outerWidth of the window in pixels.
    • height: A number. outerHeight of the window in pixels.

Example#

print(getWinSize())# prints, {width: 1680, height: 1050}