Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix some readme syntax error.

  • Loading branch information...
commit b567becf63dbc1bd29cde7b879d23c4c2db00848 1 parent 4db1708
@seanlong seanlong 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.