Is there a way to freeze an ES6 Map?

前端 未结 0 1521
借酒劲吻你
借酒劲吻你 2021-02-12 04:17

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         


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