Created
March 13, 2020 05:51
-
-
Save jsmanifest/887186f049fe96d379c1a2cc270560a5 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 doNothing(obj) { | |
return obj ? obj : obj | |
} | |
function doSomethingButNothingStill(obj) { | |
if (obj) { | |
obj = obj | |
} | |
return obj ? obj : obj | |
} | |
const evaluateSomething = compose( | |
doSomethingButNothingStill, | |
doNothing, | |
) | |
const result = evaluateSomething({ | |
name: 'Bob', | |
lastName: 'Lopez | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment