Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nodejs remove element from array


    
    function arrayRemove(arr, value) { 
    
        return arr.filter(function(ele){ 
            return ele != value; 
        });
    }
    
    var result = arrayRemove(array, 6);
    // result = [1, 2, 3, 4, 5, 7, 8, 9, 0]

Source by love2dev.com #
 
PREVIOUS NEXT
Tagged: #nodejs #remove #element #array
ADD COMMENT
Topic
Name
9+4 =