Feel free to copy-paste the function to your own code base if you don't want the dependency:
``` const objectToString = Object.prototype.toString;
export function isUint8Array(value) { return value && objectToString.call(value) === '[object Uint8Array]'; } ```
Is that just another way of saying `Uint8Array.prototype.isPrototypeOf` and `instanceof Uint8Array` are not available in all JS environments?
I guess what I'm asking is the definition of a "Javascript Realm" in case I'm thinking it's something different.
Examples of this are frames in the browser and the `vm` module in Node.js.
This isn't meant as a personal attack on anyone, but we really need to frown upon needless dependencies, especially given the growing number of malicious NPM packages.
I suspect your philosophies are irreconcilable.
That sounds like a bug in those implementations.