Created
April 3, 2018 12:18
-
-
Save indongyoo/b28df00f45cba067ec93513ee47d2e0c 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
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