IAL32

Untitled

Sep 12th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var arr = [adfasdfasfd], tmpArr = [], lastMatch = arr[0];
  2. arr.sort();
  3. for(var i = 0; i < arr.length; i++) {
  4.     if(arr[i + 1] === lastMatch) {
  5.         tmpArr.push(arr[i]);
  6.     }
  7.     lastMatch = arr[i];
  8. }
Advertisement
Add Comment
Please, Sign In to add comment