Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js pop matched value in array

<script type="text/JavaScript">

    var arr = [5, 15, 110, 210, 550];
    var index = arr.indexOf(210);

    if (index > -1) {
       arr.splice(index, 1);
    }

</script>
Source by tecadmin.net #
 
PREVIOUS NEXT
Tagged: #js #pop #matched #array
ADD COMMENT
Topic
Name
4+6 =