Created
August 31, 2015 08:19
-
-
Save micha149/e0531fe345ed2011b416 to your computer and use it in GitHub Desktop.
Javascript Promises + ES6 arrow functions = ♥
This file contains hidden or 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
return repo.getHeadCommit() | |
.then(commit => commit.getTree()) | |
.then(tree => tree.getEntry('bla/foo/bar')) | |
.then(entry => entry.getTree()) | |
.then(tree => makeThings(repo, tree)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment