SyntaxFix
Write A Post
Hire A Developer
Questions
If you're transpiling and have access to ES6, you can use spread syntax which specifically applies each iterable item of an object as a discrete argument, just the way $.when() needs it.
$.when()
$.when(...deferreds).done(() => { // do stuff });
MDN Link - Spread Syntax