Skip to content
Chama uma funcao determinando valores fornecido e um array mas a funcao curry
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README.md
apply.js
bower.json
gulpfile.js
package.json
script.txt

README.md

$apply

Chama uma funcao determinando valores fornecido e um array mas a funcao curry

this.Ninja.module('$add', ['$curry'], function ($curry) {
  return $curry(function (a, b) {
    return a + b;
  });
});

this.Ninja(['$add', '$apply'], function ($add, $apply) {
  $apply($add, ['hello', ' cleber.programmer']);
});
Something went wrong with that request. Please try again.