Created
April 16, 2019 00:50
-
-
Save EliTheCoder/5c6fdc60191ada5cd086d9c27e572f03 to your computer and use it in GitHub Desktop.
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
function recurring(input) { | |
let save = []; | |
for (let i of input) { | |
if (save.includes(i)) { | |
return i; | |
} | |
else { | |
save.push(i); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment