Is there a way to freeze an ES6 Map?

前端 未结 0 935
谎友^
谎友^ 2021-02-12 04:35

I\'m looking for a way to freeze native ES6 Maps.

Object.freeze and Object.seal don\'t seem to work:

let myMap = new Map([[\"key1\", \"value1\"]]);
// Ma         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题