let string = "25,24,23, 22,21"; let array_int = string.split(',').map(el => { return parseInt(el) });