Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #3 from seanlong/master

Fix readme
  • Loading branch information...
commit 0675c5ce04b12f7bdfae9fb465020a8ecac7ee5a 2 parents 4db1708 + b567bec
@azer authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -334,7 +334,7 @@ Return a new function which will call *function* with the gathered arguments.
```javascript
function testPartial(){
- var args = reduce(function(x,y){ x+", "+y },arguments);
+ var args = reduce(function(x,y){ return x+", "+y },arguments);
console.log("this:",this);
console.log("args:",args);
@@ -349,7 +349,7 @@ this: 3.14159
args: 3,14,1,5,9
```
-<a name="reduce />
+<a name="reduce" />
## reduce(*function*,*iterable*)
Apply *function* cumulatively to the items of *iterable*, as to reduce the
Please sign in to comment.
Something went wrong with that request. Please try again.