Created
April 26, 2018 03:26
-
-
Save fud/451edf97196d8f0775f8fbc5476919e1 to your computer and use it in GitHub Desktop.
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 saveSomething(something, callback){ | |
var saved = righto(saveValue, something); | |
var updatedLastSavedTime = righto(updateLastSaveTime); | |
// We want the result of `saved`, but only after `updatedLastSavedTime` succeeds. | |
var result = righto.after(saved, updatedLastSavedTime); | |
result(callback); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment