function isBigEndianPlatform() {

		if ( bigEndianPlatform === null ) {

			const buffer = new ArrayBuffer( 2 ),
				uint8Array = new Uint8Array( buffer ),
				uint16Array = new Uint16Array( buffer );
			uint8Array[ 0 ] = 0xAA; // set first byte

			uint8Array[ 1 ] = 0xBB; // set second byte

			bigEndianPlatform = uint16Array[ 0 ] === 0xAABB;

		}

		return bigEndianPlatform;

	} // match the values defined in the spec to the TypedArray types
Check if the endianness of the platform is big-endian (most significant bit first)
@returns {boolean} True if big-endian, false if little-endian