PlzSnow

↗ HN profile [ 78.2 ms ] full profile
Karma
164
Created
February 3, 2015 (11y ago)
Submissions
0
  1. 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…