MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / forEach

Function forEach

src/test/resources/libraries/htmx/htmx-2.0.0/src/htmx.js:749–755  ·  view source on GitHub ↗

* @template T * @param {T[]|NamedNodeMap|HTMLCollection|HTMLFormControlsCollection|ArrayLike } arr * @param {(T) => void} func

(arr, func)

Source from the content-addressed store, hash-verified

747 * @param {(T) => void} func
748 */
749 function forEach(arr, func) {
750 if (arr) {
751 for (let i = 0; i < arr.length; i++) {
752 func(arr[i])
753 }
754 }
755 }
756
757 /**
758 * @param {Element} el

Callers 15

duplicateScriptFunction · 0.70
takeClassForElementFunction · 0.70
cloneAttributesFunction · 0.70
oobSwapFunction · 0.70
handlePreservedElementsFunction · 0.70
handleAttributesFunction · 0.70
deInitNodeFunction · 0.70
cleanUpElementFunction · 0.70
findAndSwapOobElementsFunction · 0.70
swapFunction · 0.70
doSettleFunction · 0.70
addEventListenerFunction · 0.70

Calls 1

funcFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…