lib/generators/html/build/make_default_helpers.js
function(types, options){
			if(!Array.isArray(types)) {
				return options.inverse(this);
			}
			var typesWithDescriptions = [];
			types.forEach(function( type ){
				if(type.description){
					typesWithDescriptions.push(type)
				}
			});
			
			if( !typesWithDescriptions.length ) {
				// check the 1st one's options
				if(types.length == 1 && types[0].options ) {
					types[0].options.forEach(function(option){
						typesWithDescriptions.push(option);
					});
				}
				
			}
			
			if(typesWithDescriptions.length){
				return options.fn({types: typesWithDescriptions});
			} else {
				return options.inverse(this);
			}
		}
function(types, options){
			if(!Array.isArray(types)) {
				return options.inverse(this);
			}
			var typesWithDescriptions = [];
			types.forEach(function( type ){
				if(type.description){
					typesWithDescriptions.push(type)
				}
			});
			
			if( !typesWithDescriptions.length ) {
				// check the 1st one's options
				if(types.length == 1 && types[0].options ) {
					types[0].options.forEach(function(option){
						typesWithDescriptions.push(option);
					});
				}
				
			}
			
			if(typesWithDescriptions.length){
				return options.fn({types: typesWithDescriptions});
			} else {
				return options.inverse(this);
			}
		}
function ( types , options ) { if ( ! Array . isArray ( types ) ) { return options . inverse ( this ) ; } var typesWithDescriptions = [ ] ; types . forEach ( function ( type ) { if ( type . description ) { typesWithDescriptions . push ( type ) } } ) ; if ( ! typesWithDescriptions . length ) { // check the 1st one's options if ( types . length == 1 && types [ 0 ] . options ) { types [ 0 ] . options . forEach ( function ( option ) { typesWithDescriptions . push ( option ) ; } ) ; } } if ( typesWithDescriptions . length ) { return options . fn ( { types : typesWithDescriptions } ) ; } else { return options . inverse ( this ) ; } }
Getting and transforming data and making it available to the template 
@function documentjs.generators.html.defaultHelpers.getTypesWithDescriptions
Getting and transforming data and making it available to the template