cara mengonversi string ke int array di javascript
var a = "1,2,3,4";
var b = a.split(',').map(function(item) {
return parseInt(item, 10);
});
Griffon Vulture
var a = "1,2,3,4";
var b = a.split(',').map(function(item) {
return parseInt(item, 10);
});
let arrayOfNumbers = arrayOfStrings.map(Number);