JMap.Util.Array.remove
Remove given element in given array.
the array
the element to remove
the given array (and not a copy)
const myNumbers = [3, 5, 6, 7]// remove element 6 in arrayJMap.Util.Array.remove(myNumbers, 6)console.log(`Now my numbers are [${myNumbers.join(", ")}]`)// display message "Now my numbers are [3, 5, 7]" Copy
const myNumbers = [3, 5, 6, 7]// remove element 6 in arrayJMap.Util.Array.remove(myNumbers, 6)console.log(`Now my numbers are [${myNumbers.join(", ")}]`)// display message "Now my numbers are [3, 5, 7]"
JMap.Util.Array.remove
Remove given element in given array.