Created
April 30, 2018 08:29
-
-
Save nch3v/588ce03595675e3a1b0c9bbc26f3c90e to your computer and use it in GitHub Desktop.
Kind of Promise.all using jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function all(arrayOfPromises) { | |
return jQuery.when.apply(jQuery, arrayOfPromises).then(function() { | |
return Array.prototype.slice.call(arguments, 0); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment