GitHub 6248★

Detect macOS browser

JavaScript version

const isMacBrowser = /Mac|iPod|iPhone|iPad/.test(navigator.platform);

TypeScript version

const isMacBrowser: boolean = /Mac|iPod|iPhone|iPad/.test(navigator.platform);
Follow me on and to get more useful contents.