src/generators/shared/utils/getGlobals.js/getGlobalFn
function getGlobalFn ( globals ) {
	if ( typeof globals === 'function' ) return globals;
	if ( typeof globals === 'object' ) {
		return id => globals[ id ];
	}

	return () => undefined;
}