How can I create a two-way mapping in JavaScript, or some other way to swap out values?

后端 未结 0 1072
北恋
北恋 2021-02-11 22:47

I currently have a need to temporarily swap out values in a JavaScript string, and therefore I will need to have a two-way map/hash thing.

For example, let\'s say I want

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