Skip to content

Instantly share code, notes, and snippets.

@EliTheCoder
Created April 16, 2019 00:50
Show Gist options
  • Save EliTheCoder/5c6fdc60191ada5cd086d9c27e572f03 to your computer and use it in GitHub Desktop.
Save EliTheCoder/5c6fdc60191ada5cd086d9c27e572f03 to your computer and use it in GitHub Desktop.
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