(obj: any)
| 26 | export const hasBuffer = isNodeEnv && typeof Buffer !== "undefined"; |
| 27 | |
| 28 | export function isUint8Array(obj: any): obj is Uint8Array { |
| 29 | return obj instanceof Uint8Array || Object.prototype.toString.call(obj) === "[object Uint8Array]"; |
| 30 | } |