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

Function isAppleDevice

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

Source from the content-addressed store, hash-verified

102const appleDeviceMatch = /(Mac|iPhone|iPod|iPad)/i;
103
104export const isAppleDevice = (): boolean => {
105 if (typeof window === 'undefined') {
106 return false;
107 }
108
109 return appleDeviceMatch.test(window.navigator.platform);
110};
111
112export const isIOS = (): boolean =>
113 /iPhone|iPad/i.test(globalThis?.navigator.userAgent);

Callers 5

RichTextInputFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected