MCPcopy Create free account
hub / github.com/DavidWells/analytics / toArray

Function toArray

packages/analytics-util-forms/src/utils/toArray.js:6–13  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

4 * @return {array} array of nodes
5 */
6export default function toArray(obj) {
7 const array = []
8 // iterate backwards ensuring that length is an UInt32
9 for (var i = obj.length >>> 0; i--;) {
10 array[i] = obj[i]
11 }
12 return array
13}

Callers 4

formatArgsFunction · 0.70
getSelectorFunction · 0.70
submitFormFunction · 0.50
onChangeFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected