clear
Removes all items from a list.
This function generates a change
Function
list.clear()
Arguments
None
Return value
Returns nil
.
Example
This code adds things to a set:
arr = ['a', 'b', 'c'];
arr.clear();
arr; // the list is empty
Return value in JSON format