Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 16, 2021 00:12
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 parzibyte/2d8240acea840c5ff270b8721e5b6798 to your computer and use it in GitHub Desktop.
Save parzibyte/2d8240acea840c5ff270b8721e5b6798 to your computer and use it in GitHub Desktop.
const caracteresUnicos = cadena => {
// https://parzibyte.me/blog
let unicos = "";
for (letra of cadena) {
if (!unicos.includes(letra)) {
unicos += letra;
}
}
return unicos;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment