arr = ['test1', 'test2', 'test3','test4','test5','test6']; for (var i = 0; i < arr.length; i++) { if(arr[i] == 'test3') { arr.splice(i, 1); } }