Navigation Menu

Skip to content

Commit

Permalink
fix some readme syntax error.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlong committed Sep 6, 2012
1 parent 4db1708 commit b567bec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit b567bec

Please sign in to comment.