@technobuddha > react-hooks > DOM > Analysis
Function: measureWindow()
ts
function measureWindow(): Size;Defined in: measure-window.ts:17
Measures the current window size and scrollbar size.
Returns
Properties: width, height, scrollbarWidth, scrollbarHeight.
Example
typescript
const size = measureWindow();
// size: { width: number, height: number, scrollbarWidth: number, scrollbarHeight: number \}