dist/angular-middleware.js
function getMiddlewareNames(route) {
		var middleware = getRouteMiddleware(route);

		// If the middleware is an array, just return it
		if ( middleware instanceof Array ) {
			return middleware;
		}

		// If there is no middleware, then return an empty array
		if ( typeof middleware === 'undefined' ) {
			return [];
		}

		// Otherwise, split the pipes & return an array
		return middleware.split('|');
	}
function getMiddlewareNames(route) {
		var middleware = getRouteMiddleware(route);

		// If the middleware is an array, just return it
		if ( middleware instanceof Array ) {
			return middleware;
		}

		// If there is no middleware, then return an empty array
		if ( typeof middleware === 'undefined' ) {
			return [];
		}

		// Otherwise, split the pipes & return an array
		return middleware.split('|');
	}
function getMiddlewareNames ( route ) { var middleware = getRouteMiddleware ( route ) ; // If the middleware is an array, just return it if ( middleware instanceof Array ) { return middleware ; } // If there is no middleware, then return an empty array if ( typeof middleware === 'undefined' ) { return [ ] ; } // Otherwise, split the pipes & return an array return middleware . split ( '|' ) ; }
Get the middleware names
from an array or a piped string

@param   {object} route
@returns {array}
Get the middleware names from an array or a piped string