Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 18, 2019 16:14
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/fd279e766ef94976f828dca432e5488b to your computer and use it in GitHub Desktop.
Save parzibyte/fd279e766ef94976f828dca432e5488b to your computer and use it in GitHub Desktop.
let sinRepetidos = arregloConRepetidos.filter(function(valor, indiceActual, arreglo) {
let indiceAlBuscar = arreglo.indexOf(valor);
if (indiceActual === indiceAlBuscar) {
return true;
} else {
return false;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment