DionysosJH™ 2022. 3. 27. 19:32

 

const testMap = new Map();

 

testMap.set ( '이름' ,'홍길동);

testMap.get('이름');         ==> 홍길동

testMap.delete('이름');    ==> true | flase

testMap.cleare();

testMap.has('이름');         ==> true | flase

 

testMap.size;

  testMap.foreach( function(val,key){

     console.log( val + ' & ' + key );

  });

testMap.entries();

  for(l et [key,val] of testMap.entries() ){

    console.log ( key + ' & ' + val );

  }

testMap.keys();

testMap.values();