mock-angular.js
function applyResponseInterceptors(response) {
				if (response.config.transformResponse) {
					response.data = applyTransform(response.data, response.headers, response.status, response.config.transformResponse);
				}
				for (var i = interceptors.length - 1; i >= 0; i--) {
					var interceptor = getInterceptor(interceptors[i]);
					if (interceptor.response) {
						response = interceptor.response(response);
					}
				}
				return response;
			}
function applyResponseInterceptors(response) {
				if (response.config.transformResponse) {
					response.data = applyTransform(response.data, response.headers, response.status, response.config.transformResponse);
				}
				for (var i = interceptors.length - 1; i >= 0; i--) {
					var interceptor = getInterceptor(interceptors[i]);
					if (interceptor.response) {
						response = interceptor.response(response);
					}
				}
				return response;
			}
function applyResponseInterceptors ( response ) { if ( response . config . transformResponse ) { response . data = applyTransform ( response . data , response . headers , response . status , response . config . transformResponse ) ; } for ( var i = interceptors . length - 1 ; i >= 0 ; i -- ) { var interceptor = getInterceptor ( interceptors [ i ] ) ; if ( interceptor . response ) { response = interceptor . response ( response ) ; } } return response ; }
Apply response interceptors in reverse order
@param response
@returns {*}
Apply response interceptors in reverse order