I have this ES6 map:
Map(6) {"Coratia" => 1, "Korea" =>, "Norway" => 2, "Munich" => 1, "Austrlia" => 1, ...}
I'd like to swap the key and values to make it like this:
{1 => "Coratia", 1 => "Korea", 2 => "Norway", 1 => "Munich", 1 => "Australia", ...}
{1: ["cortia", "Korea", "Munich", "Australia"...], 2: "Norway"}