Created
October 19, 2022 10:50
-
-
Save hawx1993/6e5e241dfa51d6bcf5a0c2b2747d8754 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
| var arr1 = [ | |
| 'common', 'testma', | |
| 'xchaos', 'xcrab', | |
| 'xfiregod', 'xsea', | |
| 'xshelter', 'zeus' | |
| ]; | |
| var arr2 = [ | |
| 'common', 'xsea', | |
| 'testma', 'xchaos', | |
| 'xcrab', 'xshelter', | |
| 'xfiregod', 'zeus' | |
| ]; | |
| arr1.every((item) => arr2.indexOf(item) > -1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment