Skip to content

Instantly share code, notes, and snippets.

@vielhuber
Last active September 22, 2017 23: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 vielhuber/7dd0974134938d9e2eac to your computer and use it in GitHub Desktop.
Save vielhuber/7dd0974134938d9e2eac to your computer and use it in GitHub Desktop.
sorting out duplicates in array #js
array = $.grep(array, function(v, k){ return $.inArray(v ,array) === k; });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment