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";
constresult = 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.
Throws
If an explicitly supplied user agent is not a string.
Remarks
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.
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: