I have an application that requires data be loaded in a certain order: the root URL, then the schemas, then finally initialize the application with the schemas and urls for
If you are using ES6 version of javascript There is a spread operator(...) which converts array of objects to comma separated arguments.
$.when(...promises).then(function() {
var schemas=arguments;
};
More about ES6 spread operator https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator find here