title: Run a function every time any function in class is called using JS
body: <p>I have simple class like this:</p>
  
  <pre><code>module.exports = class MyClass {
  
      function middleware() {
          console.log('call me before')
      }
  
      function a() {
  
      }
      function b() {
  
      }
  
      function c() {
  
      }
  }
  </code></pre>
  
  <p>So Idea is, when someone call function a, b, c I want call middleware before execute a, b, c. How can I do it?</p>
  
  <p>So, I can put middleware() to each function, but I want some dynamic way how to do this.</p>