MCPcopy Create free account
hub / github.com/dailydotdev/apps / isAppleDevice

Function isAppleDevice

packages/shared/src/lib/func.ts:90–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88const appleDeviceMatch = /(Mac|iPhone|iPod|iPad)/i;
89
90export const isAppleDevice = (): boolean => {
91 if (typeof window === 'undefined') {
92 return false;
93 }
94
95 return appleDeviceMatch.test(window.navigator.platform);
96};
97
98export const isIOS = (): boolean =>
99 /iPhone|iPad/i.test(globalThis?.navigator.userAgent);

Callers 5

RichTextInputFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected