Skip to content

Commit

Permalink
Fixed readme typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bensheldon committed Nov 17, 2012
1 parent e12cef1 commit 0255e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ fruits.join(', ');
//=> Apple, Orange, Pear
```

#### .map( function(index) )
#### .map( function(index, element) )
Iterates over a cheerio object, executing a function for each selected element. Map will return an `array` of return values from each of the functions it iterated over. The function is fired in the context of the DOM element, so `this` refers to the current element, which is equivalent to the function parameter `element`.

```js
Expand Down

0 comments on commit 0255e5a

Please sign in to comment.