JMap.Util.Array.clear
Removes all items of the specified array, making it empty.
the array
the given array (and not a copy)
const myNumbers = [3, 5, 6, 7]// remove all itemsJMap.Util.Array.clear(myNumbers)console.log(`Count=${myNumbers.length}`)// display message "Count=0" Copy
const myNumbers = [3, 5, 6, 7]// remove all itemsJMap.Util.Array.clear(myNumbers)console.log(`Count=${myNumbers.length}`)// display message "Count=0"
JMap.Util.Array.clear
Removes all items of the specified array, making it empty.