Clears the contents of an Array
Remove all elements
const array = [1, 2, 3];clear(array);console.log(array); // []
the Array to clear
Generated using TypeDoc
Clears the contents of an Array
Mutation
Example
Remove all elements