Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js clear map

const myMap = new Map();
//add some key value pairs

myMap.clear() // clear all key/value pairs
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #clear #map
ADD COMMENT
Topic
Name
1+7 =