I have a loop that makes calls to an API and compiles the results into an array. How do I wait until all of the calls are finished until resuming execution? I see a bunch of
getData will return a promise which is a read-only version of a deferred. You can then execute code based on the resolution of these promises using $.when