MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / GetData

Function GetData

assets/js/shellsort.js:22–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22function GetData () {
23 'use strict';
24
25 var input = document.getElementsByTagName('input'),
26 dataArray = [],
27 inputValue = [],
28 valueOfNumber,
29 i,
30 len;
31
32 for (i = 0, len = input.length; len > i; i++) {
33 inputValue.push(input[i].value);
34 valueOfNumber = inputValue.map(Number);
35
36 dataArray.push({
37 valueInput: valueOfNumber[0],
38 id: input[i].getAttribute('id')
39 });
40
41 inputValue = [];
42 }
43
44 this.dataArray = dataArray;
45}
46
47
48/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected