DEV Community

loading...

Discussion on: Get OS details from the webpage in JavaScript. 👷‍♂️

Collapse
markwitt_me profile image
Mark Witt

You can also use iosPlatforms.includes(platform) instead of iosPlatforms.indexOf(platform) !== -1

Collapse
mutale85 profile image
Mutale85

can you give an example?

Collapse
vaibhavkhulbe profile image
Vaibhav Khulbe Author

Cool, thanks for the info! 😁