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
: Anumber
.outerWidth
of the window in pixels.height
: Anumber
.outerHeight
of the window in pixels.
#
Exampleprint(getWinSize())# prints, {width: 1680, height: 1050}