Answers for "js pop matched value in array"

0

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>
Posted by: Guest on August-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language