Skip to content

Function: isDesktop()

ts
function isDesktop(): boolean;

Returns true if the environment is a browser and the device is not mobile or tablet.

Returns

boolean

Example

ts
isDesktop() // true on a laptop or desktop computer

Since

1.0.0

Released under the MIT License.