I have an object that contains some categories as keys and then an integer as a property:
{
thing1: 12,
thing2: 32,
thing3: 9,
thing4: 2
}
I need to find the mode out of all the numbers (the highest number - 32 in this case) and then return the key. What's the best way to do this?