PlzSnow
- Karma
- 164
- Created
- February 3, 2015 (11y ago)
- Submissions
- 0
-
Consider these 2 statements, which identically detect an iPod or iPhone: if (/ip(hone|od)/i.test(navigator.userAgent)) if (/iphone|ipod/i.test(navigator.userAgent)) Which would you use? I argue for the second, as it is…