UNPKG

js-wrench

Version:

JS函数库

15 lines (14 loc) 312 B
/** * @description 是否IOS * * @return {*} {boolean} 返回一个布尔值 * @example isIOS() => false|true */ const isIOS = (): boolean => { let userAgentInfo: string = navigator.userAgent if (userAgentInfo.indexOf('iPhone') > -1) { return true } return false } export default isIOS