function delRepeatedArray(arr) { var result = [], isRepeated; for(var i = 0, len0 = arr.length; i < len0; i++) { isRepeated = false; for(var j = 0, len = result.length; j < len; j++) { if(arr[i] === result[j]) { isRepeated = true; break; } } if(!isRepeated) { result.push(arr[i]); } } return result; }