Good day! The question is easy, do not judge strictly) There is a numeric array of strings. How to convert it to just a numeric one?
var array = ["1", "3", "5", "7", "9", "8", "6", "4", "2"] ==> ==>[1, 3, 5, 7, 9, 8, 6, 4, 2] Good day! The question is easy, do not judge strictly) There is a numeric array of strings. How to convert it to just a numeric one?
var array = ["1", "3", "5", "7", "9", "8", "6", "4", "2"] ==> ==>[1, 3, 5, 7, 9, 8, 6, 4, 2] Source: https://ru.stackoverflow.com/questions/577769/
All Articles
mapand convert each value viaparseInt- Aleksey Shimansky