Created
April 12, 2021 08:08
-
-
Save frivolta/89f439313e0ac89225a9ed6dcac613db to your computer and use it in GitHub Desktop.
jmawd - first solution
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
const result = [] | |
for (let i = 0; i < firstArr.length; i++) { | |
if (result.indexOf(firstArr[i]) == -1) result.push(firstArr[i]) | |
} | |
for (let i = 0; i < secondArr.length; i++) { | |
if (result.indexOf(secondArr[i]) == -1) result.push(secondArr[i]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment