Answered
Need a way to take an array of strings:
["string", "string", "string"]
And convert it into an empty array:
[]
array = []
This sets the array to a new empty version.
Be careful with this method if you have a different variable that references the original array. If that's the case, that variable will still hold the contents of the unchained array.
array.length = 0
This clears the array by setting its length property to 0
.