if ( ! ArrayBuffer . isView ) { ArrayBuffer . isView = ( a ) : a is ArrayBufferView => { return a !== null && typeof ( a ) === 'object' && a . buffer instanceof ArrayBuffer ; } ; } if ( typeof ( globalThis ) === "undefined" && typeof ( window ) !== "undefined" ) { window [ 'globalThis' ] = window ; }