Created
March 18, 2019 12:09
-
-
Save YurkaninRyan/d49c6a60c0e8ae71fbf542d791a7d1d5 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
import double from "./double"; | |
function doublePlusOne(x, opts) { | |
// Can't forget to pipe our "opts" through! | |
const doubled = double(x, opts); | |
// We must of received an error. | |
if (!Number.isNumber(doubled)) { return null; } | |
return doubled + 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment