Skip to content

Instantly share code, notes, and snippets.

@Czajnikowski
Last active June 3, 2017 12:10
Show Gist options
  • Save Czajnikowski/94e259ad1ae503c3c1cb84da3797d888 to your computer and use it in GitHub Desktop.
Save Czajnikowski/94e259ad1ae503c3c1cb84da3797d888 to your computer and use it in GitHub Desktop.
reduce(initialValue) {
...
if resultIsGoodEnough($0) {
return $0 // No break here!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment