SHARE
TWEET

Untitled

a guest Dec 6th, 2010 166 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for ( x = 0; x < origLen; x++ ) {
  2.     if ( newArr.indexOf(origArr[x]) == -1 ) newArr.push(origArr[x]);
  3. }
RAW Paste Data
Want to get better at JavaScript?
Learn to code JavaScript in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top