Skip to content

Instantly share code, notes, and snippets.

@YurkaninRyan
Created March 18, 2019 12:09
Show Gist options
  • Save YurkaninRyan/d49c6a60c0e8ae71fbf542d791a7d1d5 to your computer and use it in GitHub Desktop.
Save YurkaninRyan/d49c6a60c0e8ae71fbf542d791a7d1d5 to your computer and use it in GitHub Desktop.
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