Created
January 12, 2021 11:06
-
-
Save dhruvangg/a03e188c4aadef0336e5a34a40b0c2ad to your computer and use it in GitHub Desktop.
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
let a = [1,2,3], | |
b = [1,2,3,4], | |
c = [8,9]; | |
let checkAny = (arr, target) => target.some(el => arr.includes(el)); | |
console.log(checkEvery(b, a)) // true | |
console.log(checkEvery(c, a)) // false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment