In javascript, I have a hash map of key value pairs like:
"team", "aemt"
"meat", "aemt"
"car", "acr"
And I want to store all of the matching values with the length of the string like this:
{4, {"team","meat"}}
{3, {"car"}
How would I accomplish this?