title: How to write proxy function over funciton?
body: <p>There is a class with some several methods. One of them:</p>
  <pre><code>drawGeojson(layerid: string, geojsonObject) {
       this.ngZone.run(() =&gt; {}
  }
  </code></pre>
  <p>How to refactor the code - so that, on request, you can execute the method body with a wrapper</p>
  <pre><code> this.ngZone.run(() =&gt; {}
  </code></pre>
  <p>and without it?</p>
  <p>I need something this:</p>
  <p>The default call: <code>drawGeojson()</code>
  The proxy call <code>Wrapper.drawGeojson();</code></p>