ResultSet()
A container that stores parse results
Methods
add(Result, KeepsArray) → ResultSet
Saves the provided data as a parsing result. You can pass an array as multiple results
Parameters:
Name | Type | Default | Description |
---|---|---|---|
Result |
mixed | Array.<mixed> | ResultSet | The data to add |
|
KeepsArray |
boolean | false | If |
- Source:
- ResultSet.js, line 18
Returns:
This
- Type:
- ResultSet
traverse(Fn, Arg)
Performs traversal
Parameters:
Name | Type | Default | Description |
---|---|---|---|
Fn |
function | The callback that receives every single result as the 1st parameter |
|
Arg |
mixed | null | Additional argument to pass to |
- Source:
- ResultSet.js, line 32