UNPKG

detect-features

Version:

Detect and report browser and hardware features.

9 lines (7 loc) 206 B
// @ts-check /** * Gets the device screen width and height * * @returns {number[]} Device screen [width, height] pair */ export default (() => [window.screen.width, window.screen.height] || [0, 0])();