title: Adding Function to String.Prototype
body: <p>While reading <a href="http://www.manning.com/resig/" rel="nofollow">Secrets of the JavaScript Ninja</a>, I encountered this code on partial function application:</p>
  
  <pre><code>String.prototype.csv = String.prototype.split.partial(/,\s*/);
  
  var results = ("Mugan, Jin, Fuu").csv();
  
  console.log("results:", results);
  </code></pre>
  
  <p>But, when I tried to run it in jsfiddle(<a href="http://jsfiddle.net/Y2Tv4/" rel="nofollow">http://jsfiddle.net/Y2Tv4/</a>), I got this error:</p>
  
  <blockquote>
    <p>Uncaught TypeError: Object function split() { [native code] } has no method 'partial' </p>
  </blockquote>
  
  <p>How can I add the <code>csv</code> function to the <code>String.Prototype</code>?</p>