Finding the key in a map, given the value

前端 未结 5 2678
迷失自我
迷失自我 2021-02-20 16:57

Hi I have a map like this :

[this:0, is:1, a:2, file:3, anotherkey:4, aa:5]

I wish I could find the key\'s given the value

5条回答
  •  自闭症患者
    2021-02-20 17:32

    You'll probably have to iterate over the entry set yourself and try to find the entry with a matching value.

提交回复
热议问题