Created
January 26, 2023 03:32
-
-
Save neos1803/be02714fc47dbccef7ad0e5512a81693 to your computer and use it in GitHub Desktop.
Javascript one liner two arrays duplicate checking
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 duplicate = arr1.filter((v) => arr2.includes(v)).length > 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment