title: Is there any way to check if an object is a type of enum in TypeScript?
body: <pre><code>enum Direction {
      Up = 1,
      Down,
      Left,
      Right
  }
  
  if (typeof Direction === 'enum') {
      // doesn't work
  }
  </code></pre>
  
  <p>Any way to check if the above is in fact an <code>enum</code>?</p>