Members
# default
Cheerio default options.
- Source:
Methods
# domEach(cheerio, fn) → {Cheerio}
Iterate over each DOM element without creating intermediary Cheerio instances.
This is indented for use internally to avoid otherwise unnecessary memory pressure introduced by _make.
Parameters:
Name | Type | Description |
---|---|---|
cheerio |
Cheerio | Cheerio object. |
fn |
function | Function to call. |
- Source:
Returns:
The original instance.
- Type
- Cheerio
# update(arr, parent) → {Node}
Update the dom structure, for one changed layer.
Parameters:
Name | Type | Description |
---|---|---|
arr |
Array.<Node> | Node | The new children. |
parent |
NodeWithChildren | The new parent. |
- Source:
Returns:
The parent node.
- Type
- Node