MCPcopy Create free account
hub / github.com/CommE2E/comm / isDeviceType

Function isDeviceType

lib/types/device-types.js:16–18  ·  view source on GitHub ↗
(platform: ?string)

Source from the content-addressed store, hash-verified

14export const deviceTypes: $ReadOnlyArray<DeviceType> = values(deviceTypesObj);
15
16export function isDeviceType(platform: ?string): boolean {
17 return platform === 'ios' || platform === 'android';
18}
19
20export function assertDeviceType(deviceType: ?string): DeviceType {
21 invariant(

Callers 2

processClientResponsesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected