Javascript currying vs method chaining
<p>From what I have understood:</p>

<p>Currying - functions returning functions</p>

<pre><code>string.capitalize(1)('character')('at the end')
</code></pre>

<p>Method chaining - methods returning objects</p>

<pre><code>string.lowercase.capitalize.uppercase
</code></pre>

<p>Is this understanding correct?</p>

<p>If so, are there cases one of them is better than the other?</p>

<p>Cause it seems to me that method chaining is better and more readable. You also have autocompletion showing what methods you can use if you hit "dot" and it will show all the arguments you can pass.</p>
