@sensimods/utility-lab
    Preparing search index...

    Function isTouchDevice

    • Checks if the current device supports touch interactions.

      Returns boolean

      true if touch is supported.

      if (isTouchDevice()) {
      console.log("This device supports touch interactions!");
      }