SyntaxFix
Write A Post
Hire A Developer
Questions
Slightly update the first answer using a more functional approach.
const isIOS = [ 'iPad Simulator', 'iPhone Simulator', 'iPod Simulator', 'iPad', 'iPhone', 'iPod', ].indexOf(navigator.platform) !== -1;