title: How in javascript to implement a function that is called as a string?
body: <p>I need to implement a function that is called as a string, how to do this better?
  An example of a call might look like this:</p>
  
  <pre><code>var a = ‘Hi’.myFunc();
  console.log(a); // Hi
  </code></pre>