SyntaxFix
Write A Post
Hire A Developer
Questions
I use a shorthand that does the job well. Just do
map.clear();