❯ ~/robonen/tools
core
  • stdlibapi
  • platformapi
  • fetchapi
  • encodingapi
  • crdtapi
vue
  • vueapi
    ❯
    guide
    • Introduction
    • ❯assignStyle
    • ❯createGuardAttrs
    • ❯decodeCookieValue
    • ❯dispatchAnimationEvent
    • ❯encodeCookieName
    • ❯encodeCookieValue
    • ❯findCardBrand
    • ❯findFirstVisible
    • ❯findLastVisible
    • ❯findPhoneCountry
    • ❯focus
    • ❯focusFirst
    • ❯focusGuard
    • ❯getActiveElement
    • ❯getAnimationName
    • ❯getCookieValue
    • ❯getCountryFlagByCode
    • ❯getTabbableCandidates
    • ❯getTabbableEdges
    • ❯getTranslate
    • ❯hideOthers
    • ❯isAnimatable
    • ❯isEventTarget
    • ❯isHidden
    • ❯isInView
    • ❯isIOS
    • ❯isIPad
    • ❯isIPhone
    • ❯isMac
    • ❯isMobileFirefox
    • ❯isSafari
    • ❯isSelectableInput
    • ❯isValidCardNumber
    • ❯onAnimationSettle
    • ❯parseCookieString
    • ❯pxValue
    • ❯readInputState
    • ❯resetStyle
    • ❯serializeCookie
    • ❯setStyle
    • ❯shouldSuspendUnmount
    • ❯testUserAgentPlatform
    • ❯writeInputState
  • writekitapi
  • primitivesui
configs
  • eslintguide
  • tsconfigguide
  • tsdownguide
infra
  • renovateguide
@robonen/vue/isIPhone
fn

isIPhone

v0.0.5

Whether the current platform is an iPhone (per navigator.platform).

Source

Signature

ts
declare function isIPhone(): boolean | undefined;

Returns

boolean | undefinedtrue on iPhone, undefined outside a browser
on this page
  • Signature
  • Returns