Skip to content

Instantly share code, notes, and snippets.

@frivolta
Created April 12, 2021 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frivolta/4c94fe32b174a8f915f7324f826ee4c8 to your computer and use it in GitHub Desktop.
Save frivolta/4c94fe32b174a8f915f7324f826ee4c8 to your computer and use it in GitHub Desktop.
jmawd - second solution
const concatArr = firstArr.concat(secondArr)
const result = concatArr.filter((item, idx) => concatArr.indexOf(item) === idx)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment