grunt-template-jasmine-istanbul_src-main-js-template.js
function (collector, options) {
	if (typeof options == 'string' || options instanceof String) {
		// default to html report at options directory
		writeReport('html', {
			dir: options
		}, collector);
	} else if (options instanceof Array) {
		// multiple reports
		for (var i = 0; i < options.length; i = i + 1) {
			var report = options[i];
			writeReport(report.type, report.options, collector);
		}
	} else {
		// single report
		writeReport(options.type, options.options, collector);
	}
}
function (collector, options) {
	if (typeof options == 'string' || options instanceof String) {
		// default to html report at options directory
		writeReport('html', {
			dir: options
		}, collector);
	} else if (options instanceof Array) {
		// multiple reports
		for (var i = 0; i < options.length; i = i + 1) {
			var report = options[i];
			writeReport(report.type, report.options, collector);
		}
	} else {
		// single report
		writeReport(options.type, options.options, collector);
	}
}
function ( collector , options ) { if ( typeof options == 'string' || options instanceof String ) { // default to html report at options directory writeReport ( 'html' , { dir : options } , collector ) ; } else if ( options instanceof Array ) { // multiple reports for ( var i = 0 ; i < options . length ; i = i + 1 ) { var report = options [ i ] ; writeReport ( report . type , report . options , collector ) ; } } else { // single report writeReport ( options . type , options . options , collector ) ; } }
Writes the istanbul reports created from the specified options.

@private
@method writeReports

@param {Collector} collector The collector containing the coverage
@param {Object} options The options describing the reports
Writes the istanbul reports created from the specified options .