Last active
March 2, 2020 23:51
-
-
Save MarvinJWendt/6c009381f8f1929f99b5ed9fb1380a08 to your computer and use it in GitHub Desktop.
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
function is(x) { | |
return { | |
plus: (plus) => { | |
return is(x + plus) | |
}, | |
minus: (minus) => { | |
return is(x - minus) | |
}, | |
equalToTen: () => { | |
return (x === 10) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment