I have a key value pair array in js
var tabList = {0:'#description', 1:'#media', 2:'#attributes', 3:'#calendar', 4:'#pricing'}
I'm using the keys to get the values in my code
ie. tabList[2] returns #attributes
I thought I could do the same in reverse to get the key
tabList[#media] and have it return 1
But this doesn't work
How can I fetch the key with only the value as input?