function hasAtobSupport() {
	var bool;
	var str;

	if ( typeof globalAtob !== 'function' ) {
		return false;
	}
	// Test basic support...
	try {
		str = globalAtob( BASE64 );
		bool = ( str === EXPECTED );
	} catch ( err ) { // eslint-disable-line no-unused-vars
		bool = false;
	}
	return bool;
}
Tests for native `atob` support.

@returns {boolean} boolean indicating if an environment has `atob` support

@example
var bool = hasAtobSupport();
// returns <boolean>