If is to be more functional like e prefer add functions: compose and curry:<p>1 -   
  &#x2F;&#x2F; With pipe:
  var result = &quot;hello&quot;
    |&gt; doubleSay
    |&gt; capitalize
    |&gt; exclaim;<p><pre><code>  With compose:
  var greet = compose(exclaim, capitalize, doubleSay);
  greet(&quot;hello&quot;);
  &#x2F;&#x2F; or compose(exclaim, capitalize, doubleSay)(&quot;hello&quot;);
</code></pre>
2 - 
  var person = { score: 25 };<p><pre><code>  &#x2F;&#x2F; With pipe:
  var newScore = person.score
    |&gt; double
    |&gt; score =&gt; add(7, score)
    |&gt; validateScore

  &#x2F;&#x2F; With compose and curry:
  var newScore = compose(validateScore, curry(add(7), double);
  newScore(person.score);
</code></pre>
3 - Mixin paradigms<p><pre><code>  &#x2F;&#x2F; With compose and curry :
  var newScore = Function.compose(validateScore, add.curry(7), double);
  newScore(person.score);</code></pre>