Skip to content

Instantly share code, notes, and snippets.

@Winwardo
Created May 10, 2018 15:54
Show Gist options
  • Save Winwardo/abf5e9611b722c24ba1ee68f08f66c98 to your computer and use it in GitHub Desktop.
Save Winwardo/abf5e9611b722c24ba1ee68f08f66c98 to your computer and use it in GitHub Desktop.
const exampleFunction1 = (n) => {
if (!predicate1) {
return 7
}
if (predicate2) {
sideEffect1(n)
return transformer2(transformer1(arg1, arg2, n), arg1)
} else {
return transformer2(transformer5(n), arg2)
}
}
const exampleFunction1 = (n) => {
if (!predicate1) {
return 7
}
if (predicate2) {
sideEffect1(n)
return transformer2(transformer1(arg1, arg2, n), arg1)
}
return transformer2(transformer5(n), arg2)
}
const exampleFunction1 = (n) => {
if (!predicate1) {
return 8
}
if (predicate2) {
log("iteration first branch for %d", n)
sideEffect1(n)
return transformer2(transformer1(arg1, arg2, n), arg1)
} else {
return transformer2(transformer5(n), arg2)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment