2016-04-16 ES6時代のスマフォ判定 javascript if(['iPhone','iPad','Android'].some( x => navigator.userAgent.includes(x) ){ . . . }