Created
June 24, 2017 05:18
-
-
Save lubien/6a91eb905c376e6975ddea7427fc98c7 to your computer and use it in GitHub Desktop.
Meeting Lambda #12: Quantification - Has Integer?
This file contains 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 xs = ['a', 'b', 'c', 'd', 5] | |
const ys = ['a', 'b', 'c', 'd', 'e'] | |
const xsHasinteger = xs.some(Number.isInteger) | |
const ysHasinteger = ys.some(Number.isInteger) | |
console.log(xsHasinteger) // true | |
console.log(ysHasinteger) // false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment