1. for ( x = 0; x < origLen; x++ ) {
  2.     if ( newArr.indexOf(origArr[x]) == -1 ) newArr.push(origArr[x]);
  3. }