UNPKG

164 BJavaScriptView Raw
1const isMobile = () => typeof navigator !== "undefined" && /mobile|tablet|ip(ad|hone|od)|android|silk|crios/i.test(
2 navigator.userAgent
3);
4export {
5 isMobile
6};