Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove quotes from array javascript

const strings = [ "20", "30", "40", "3.14159" ];
const numbers = strings.map(Number);
console.log(numbers); // [ 20, 30, 40, 3.14159 ]
 
PREVIOUS NEXT
Tagged: #remove #quotes #array #javascript
ADD COMMENT
Topic
Name
5+5 =