Skip to content

Commit

Permalink
Merge pull request #732 from jugglinmike/reinstate-toarray
Browse files Browse the repository at this point in the history
Reinstate `$.fn.toArray`
  • Loading branch information
fb55 committed Nov 22, 2015
2 parents 106e42a + 78acbfe commit 5f2777a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Readme.md
Expand Up @@ -786,6 +786,14 @@ $.xml()
### Miscellaneous
DOM element methods that don't fit anywhere else

#### .toArray()
Retrieve all the DOM elements contained in the jQuery set as an array.

```js
$('li').toArray()
//=> [ {...}, {...}, {...} ]
```

#### .clone() ####
Clone the cheerio object.

Expand Down
2 changes: 0 additions & 2 deletions lib/cheerio.js
Expand Up @@ -125,8 +125,6 @@ Cheerio.prototype._make = function(dom, context) {

/**
* Turn a cheerio object into an array
*
* @deprecated
*/

Cheerio.prototype.toArray = function() {
Expand Down

0 comments on commit 5f2777a

Please sign in to comment.