[Pkg-javascript-commits] [node-array-reduce] 04/04: Added description in control file

Shirish Togarla shirish12-guest at moszumanska.debian.org
Tue Feb 7 19:09:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

shirish12-guest pushed a commit to branch master
in repository node-array-reduce.

commit 5dd5fac7e95bfbaa567bd50078fc70d51ff003ba
Author: Shirish Togarla <shirishtogarla533 at gmail.com>
Date:   Tue Feb 7 19:07:48 2017 +0000

    Added description in control file
---
 debian/control | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index e5d5e93..124f176 100644
--- a/debian/control
+++ b/debian/control
@@ -18,6 +18,14 @@ Depends:
  ${misc:Depends}
  , nodejs
 Description: `[].reduce()` for old browsers
- FIX_ME long description
+ Create a result `res` by folding `acc = f(acc, xs[i], i)` over each element in
+ the array `xs` at element `i`. If `init` is given, the first `acc` value is
+ `init`, otherwise `xs[0]` is used. For example
+ var reduce = require('array-reduce');
+ var xs = [ 1, 2, 3, 4 ];
+ var sum = reduce(xs, function (acc, x) { return acc + x }, 0);
+ console.log(sum);
+ Output:
+ 10
  .
  Node.js is an event-based server-side JavaScript engine.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-array-reduce.git



More information about the Pkg-javascript-commits mailing list