Quote:
This is my result /
console.log(result.sub)
{1: 'serg', 2: 'dgf', 4: 'dfg ', 6: 'dfge ergre'}
Your result is not an array; it's an object which happens to have numeric property names.
If you want to iterate over the properties of the object, you can use
the Object.keys
method[
^]:
const subKeys = Object.keys(result.sub);
for (let i = 0; i < subKeys.length; i++) {
foo_arr[id].input_text(i, result.sub[subKeys[i]]);
}