allows iterating through all the nested items
forEach(callback: (item: obj, index: number, array: obj[]) => void, tree?: boolean): void;
Parameters:callback: function
- a function that will iterate over the items of the fieldset. It is called with the following arguments:
item: object
- the object of an itemindex: number
- the index of an itemarray: object[]
- an array of iterated itemstree: boolean
- defines, whether all the nested items should be iterated, false by defaultExample
form.getItem("fieldset").forEach((item, index, arr) => {
console.log(index, item, arr);
}, true);
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4