code: function(arr)
  	{
  		var dict = new mxDictionary();
  		var result = [];
  		
  		for (var i = 0; i < arr.length; i++)
  		{
  			if (!dict.get(arr[i]))
  			{
  				result.push(arr[i]);
  				dict.put(arr[i], true);
  			}
  		}
  
  		return result;
  	}
docs: Function: removeDuplicates
  
  Removes all duplicates from the given array.