title: Get TypeScript enum name from instance
body: <p>I have the following TypeScript enum:</p>
  
  <pre><code>enum Country {
      BR = "Brazil",
      NO = "Norway"
  }
  </code></pre>
  
  <p>Then imagine I have a method that takes a <code>Country</code> as an argument, like so:</p>
  
  <pre><code>someFunc = (country: Country): void =&gt; {
      console.log(country) //Will print "Brazil" if country = Country.BR
      console.log(Country[country]) //Same as above
      console.log(???) //I want to print "BR" if country = Country.BR
  }
  </code></pre>
  
  <p>How do I solve the third <code>console.log</code> statement? </p>
  
  <p>How do I get a hold of the enum key? </p>
  
  <p>Regards</p>