MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / isiOS

Function isiOS

gpu-pipeline/ui-util.js:18–20  ·  view source on GitHub ↗

* @license * Copyright 2022 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles

()

Source from the content-addressed store, hash-verified

16 */
17
18function isiOS() {
19 return /iPhone|iPad|iPod/i.test(navigator.userAgent);
20}
21
22function isAndroid() {
23 return /Android/i.test(navigator.userAgent);

Callers 1

isMobileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected