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);