lib/util.js
function routeType(route) {
	var fields = Object.keys(RouteTypeFields);
	for (var i = 0, len = fields.length; i < len; i++) {
		var field = fields[i];
		if (route[field]) {
			return RouteTypeFields[field];
		}
	}
	return 'unknown';
}
function routeType(route) {
	var fields = Object.keys(RouteTypeFields);
	for (var i = 0, len = fields.length; i < len; i++) {
		var field = fields[i];
		if (route[field]) {
			return RouteTypeFields[field];
		}
	}
	return 'unknown';
}
function routeType ( route ) { var fields = Object . keys ( RouteTypeFields ) ; for ( var i = 0 , len = fields . length ; i < len ; i ++ ) { var field = fields [ i ] ; if ( route [ field ] ) { return RouteTypeFields [ field ] ; } } return 'unknown' ; }
Get the type of a route
Get the type of a route