Skip to content

Instantly share code, notes, and snippets.

@indongyoo
Created April 3, 2018 12:18
Show Gist options
  • Save indongyoo/b28df00f45cba067ec93513ee47d2e0c to your computer and use it in GitHub Desktop.
Save indongyoo/b28df00f45cba067ec93513ee47d2e0c to your computer and use it in GitHub Desktop.
const { map, log } = Functional;
function some1(f, coll) {
const bools = map(f, coll);
for (const bool of bools) if (bool) return true;
return false;
}
log( some1(a => a > 15, [10, 20, 30, 40]) );
// true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment