Initially I had,
var value = parseInt(getValue(), 10);
where getValue() returned one value but now it returns multiple values.
I tried this:
var value = [];
getValue().forEach(function(item) {
value.push(parseInt(item, 10))
});
But it returns undefined.
Arrow functions are not supported.
valuejust holding the array you need after your code ends? Is simplyreturn valuewhat you are missing? Otherwise it seems that the problem lies insidegetValue()function.