@consumidor-positivo/ts-utils - v1.16.0
    Preparing search index...

    Function isDesktop

    • Checks if the current device is a desktop computer. This is determined by checking if the device is NOT mobile (inverse of isMobile).

      Returns boolean

      True if the device is a desktop, false otherwise

      import { isDesktop } from '@consumidor-positivo/ts-utils';

      if (isDesktop()) {
      console.log('Running on desktop');
      }