isMacOS
Checks if the current JavaScript runtime is running on macOS.
It returns if navigator.platform
includes any of the strings below:
- Macintosh
- MacIntel
- MacPPC
- Mac68K
function isMacOS(): boolean;
Checks if the current JavaScript runtime is running on macOS.
It returns if navigator.platform
includes any of the strings below:
function isMacOS(): boolean;