title: I am developing app with Azure functions using javascript, can I use wrappers or decorator techniques while writing javascript functions? I yes. How?
body: <h1>Example - <em>something like this</em>.</h1>
  <h2>wrapper.js</h2>
  <pre><code>wrapper(originalFunction){
      let startTime = Date.now()
      originalFunction(this, arguments)
      let executionTime = Date.now() - startTime
      console.log(&quot;ExecutionTime=&quot;, executionTime)
  }
  </code></pre>
  <h2>AzureFunction_1.js</h2>
  <pre><code>module.exports = wrapperFunction(async function(){
      ...
      ...
      context.done()
  })
  </code></pre>
  <p>I want to do this to add 1. logging, 2. global Error Handling, 3. executionTime, etc</p>