Published a blog post
Wrote an article for JavaScript in Plain English
How to check for mobile devices with JavaScript?

Well, most methods will still fall back on media queries unless using UParser or a similar library.

https://stackdiary.com/detect-mobile-browser-javascript/