Skip to content

Instantly share code, notes, and snippets.

@jsmanifest
Created March 13, 2020 05:51
Show Gist options
  • Save jsmanifest/887186f049fe96d379c1a2cc270560a5 to your computer and use it in GitHub Desktop.
Save jsmanifest/887186f049fe96d379c1a2cc270560a5 to your computer and use it in GitHub Desktop.
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