Skip to content

Instantly share code, notes, and snippets.

@yeco
Created March 11, 2010 17:09
Show Gist options
  • Select an option

  • Save yeco/329358 to your computer and use it in GitHub Desktop.

Select an option

Save yeco/329358 to your computer and use it in GitHub Desktop.
function eliminarDuplicados(a) {
var i,
l = a.length,
o = [],
ob = {};
for (i = 0; i < l; i++) {
ob[a[i]] = 0;
}
for (i in ob) {
o.push(i);
}
return o;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment