Skip to content

Instantly share code, notes, and snippets.

@hawx1993
Created October 19, 2022 10:50
Show Gist options
  • Select an option

  • Save hawx1993/6e5e241dfa51d6bcf5a0c2b2747d8754 to your computer and use it in GitHub Desktop.

Select an option

Save hawx1993/6e5e241dfa51d6bcf5a0c2b2747d8754 to your computer and use it in GitHub Desktop.
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