Skip to content

Instantly share code, notes, and snippets.

@cherihung
Created February 26, 2016 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cherihung/2904bac7215aa3e65b12 to your computer and use it in GitHub Desktop.
Save cherihung/2904bac7215aa3e65b12 to your computer and use it in GitHub Desktop.
var _deferredFetch = r.curry(function(response) {
var deferred = $q.defer();
deferred.resolve(response);
return deferred.promise;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment