showing results for - "convert an array of strings to numbers"
Frances
21 Mar 2017
1let result = ["1", "2", "3", "4"].map(i=>Number(i));
2console.log(result);
Alienor
12 Mar 2017
1const toNumbers = arr => arr.map(Number);
2toNumbers(['1', '2', '3','4']);     // [1, 2, 3, 4]
queries leading to this page
how to convert array of string to array of int in javascriptarray of st to number javascriptstrong array to number arrayconvert string to integer array in javascripthow to convert a string with numbers to an array of numbers javascriptconvert array of string to number jacovert string in array to number jsconvert all array string number to integer in javascriptjavascript convert string array to number arrayconvert all strings in array to int javascriptarray of strings to array of numbersarray of string to number in javascriptconvert string array to number arrayconvert array of string to int javascriptconvert number to array of numbers javascriptjavascript array of string to array of integerhow to convert array of strings into array of numbersconvert string of numbers to list jsconvert array of strings to numbers javascriptconvert string array to int javascripthow to turn an array of strings into an array of number javascripthow to convert a string array to integer array in javascriptconvert string to array of int javascriptjs convert string in array to numberconvert an array of strings to numbers jsarray of string to number javascriptcast string array to number array javascriptjavascript array of strings to numbersmake string array to int array jsjavascript convert an array of strings to numbersstring array to int array jsconvert array of strings to array of numbersjavascript array of strings to array of numbersarray of strings to numbers javascriptconverrt array of strings to array of numbersconvert array string to array int javascriptchange array of string to number javascriptjavascript change array of numbers in string to numberhow to make array number string to numberstring array to int array javascriptarray of string into array of numberschange all strong elements to numbers in arrayconvert array of string into array of number javascriptconvert array of strings to number javascriptarray string to numberjavascript string array to number arrayjs array of string to numberjs array of strings to numbershow to convert array of string to numberarray string numberconvert array strings to numbers jsconvert array from string to numbers javascriptjavascript convert array of strings to integershow to convert string array into number in javascriptconvert string to integer array jquerychange string array to number angularconvert array strings to numbersjs array of strings to integersarray of strings to numberconvert string array to int array javascriptconvert an array of strings to numbersnode js convert array of string to numbertransform array of string in array of numbersconvert an array of string to numbers javascriptconvert array of string to number javascriptarray of string to array of int javascriptconvert an array of string numbers to numbersstrings in array to numberarray of strings to integer javascriptstring array to number array javascripthow to convert an array of strings to an array of integers javascriptjavascript convert array of strings to numberstypescript convert string array value to numberarray of string to array of numbers javascripthow to convert an array of strings to an array of numbersconvert string to number in array javascriptconvert string to array of numbers javascripthow to change string inside an array to numberjs convert array of string to array of numbersconvert array of strings to array of numbers javascriptconvert a string of numbers to an array jsjs string array to int arrayes6 convert array to integerconvert an array of strings to numbers