Merge / Flatten / Concat / Join the result of multiple ajax calls with promises.
The following code will add a function to the jQuery ($). It can be used to merge the result of multiple ajax calls. $.whenall = function ($promises) { /// <summary> /// Executes the…