Skip to content
Fazer composição de funções é criar uma chamada de um conjunto de funções, chamando a função seguinte, com resultados da função anterior
JavaScript
Find file
Latest commit ddf4b63 @cleber-programmer cleber-programmer initial commit
Failed to load latest commit information.
.gitignore initial commit
README.md initial commit
bower.json initial commit
compose.js initial commit
gulpfile.js initial commit
package.json initial commit
script.txt initial commit

README.md

$compose

Fazer composição de funções é criar uma chamada de um conjunto de funções, chamando a função seguinte, com resultados da função anterior a funcao curry

this.Ninja(['$add', '$compose', '$map'], function ($add, $compose, $map) {
  console.log($map([1, 2, 3], $compose($add(1), $add(2))));
});
Something went wrong with that request. Please try again.