reset()
The reset() method returns the collection to its initial state. If an initial map was provided during creation, it will restore those values; otherwise, it will clear all items.
The reset() method returns the collection to its initial state. If an initial map was provided during creation, it will restore those values; otherwise, it will clear all items.