Detect mac os browser

Check if the current browser runs on Mac:

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

More

Previous
Detect if an element is focused
Next
Detect mobile browsers