javascript remove item from array, if an item already existing in array

后端 未结 6 663
终归单人心
终归单人心 2021-01-25 23:03

following adds items to array:

var arrayOptions = [];

function AddToFilterOptionList(mode) {
    arrayOptions.push(mode);
    }

remove item fr

6条回答
  •  鱼传尺愫
    2021-01-25 23:33

    Try this, the code is not optimised though :P

    
        
            
            
        
        
            
            
        
    
    

提交回复
热议问题