Return to Snippet

Revision: 34936
at October 30, 2010 16:15 by nuwak


Initial Code
function removeDuplicateElement(arrayName)
      {
        var newArray=new Array();
        label:for(var i=0; i<arrayName.length;i++ )
        {  
          for(var j=0; j<newArray.length;j++ )
          {
            if(newArray[j]==arrayName[i]) 
            continue label;
          }
          newArray[newArray.length] = arrayName[i];
        }
        return newArray;
      }

Initial URL

                                

Initial Description

                                

Initial Title
Удаление дубликатов из массива

Initial Tags
array

Initial Language
JavaScript