mazey
    Preparing search index...

    Function isMacOS

    • Check whether a user agent represents macOS.

      Modern iPadOS browsers that identify as macOS are excluded when the current browser exposes the standard MacIntel multi-touch compatibility signals.

      Usage:

      import { isMacOS } from "mazey";

      const result = isMacOS();
      console.log(result);

      Parameters

      • OptionaluserAgent: string

        Optional user-agent string. Defaults to the current browser's user agent.

      Returns boolean

      true for recognized macOS user agents; otherwise false.

      If an explicitly supplied user agent is not a string.

      Safe during SSR and in Node.js. An explicit value is classified without reading current browser signals. User-agent detection is heuristic and spoofable; do not use this result as a security boundary.