This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable */ | |
// ../worker-constellation-entry/src/ai/tensor.ts | |
var TypedArrayProto = Object.getPrototypeOf(Uint8Array); | |
function isArray(value) { | |
return Array.isArray(value) || value instanceof TypedArrayProto; | |
} | |
function arrLength(obj) { | |
return obj instanceof TypedArrayProto | |
? obj.length | |
: obj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Detect browsers | |
*/ | |
// Opera | |
var isOpera = | |
(navigator.userAgent.indexOf('Opera') || navigator.userAgent.indexOf('OPR')) != -1; | |
// Firefox | |
var isFirefox = navigator.userAgent.indexOf('Firefox') != -1; | |
// Safari | |
var isSafari = navigator.userAgent.indexOf('Safari') != -1; |