javascript Convert an array of strings to numbers
const toNumbers = arr => arr.map(Number);
toNumbers(['1', '2', '3','4']); // [1, 2, 3, 4]
javascript Convert an array of strings to numbers
const toNumbers = arr => arr.map(Number);
toNumbers(['1', '2', '3','4']); // [1, 2, 3, 4]
js string array convert to int
let arrayOfNumbers = arrayOfStrings.map(Number);
js how to convert all string in array into integer
array = ['1','2','3']
arrayInt = array.map(Number)
//arrayInt = [1,2,3]
string array to int array javascript
//convert array to string first and use this code
var y =x.toString().split(',').map(Number)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us