MCPcopy
hub / github.com/tmcw/big / nodeListToArray

Function nodeListToArray

lib/big.js:158–160  ·  view source on GitHub ↗

* Turn a NodeList, returned by querySelectorAll or another DOM method, * into an Array with array methods. * @param {NodeList} nodeList * @returns {Array } array of nodes

(nodeList)

Source from the content-addressed store, hash-verified

156 * @returns {Array<HTMLElement>} array of nodes
157 */
158 function nodeListToArray(nodeList) {
159 return [].slice.call(nodeList);
160 }
161
162 /**
163 * Try to find an audio node in the page that contains a usable

Callers 2

big.jsFile · 0.85
findAudioNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected