title: How to console log the name of a variable/function?
body: <p>I want to do this: <code>log(variableOrFunction)</code></p>
  
  <p>And be able to produce this: <code>variableOrFunction: actualValue</code>.</p>
  
  <p>I tried this:</p>
  
  <pre><code>export const log = (value) =&gt; {
    console.log('' + value + ':', value)
    console.log(value)
  }
  </code></pre>
  
  <p>But I get this instead: <code>[object Object]:</code> </p>
  
  <p>What's the correct of doing this?</p>