📜  从数组 javascript 代码示例中删除引号

📅  最后修改于: 2022-03-11 15:02:42.978000             🧑  作者: Mango

代码示例1
const strings = [ "20", "30", "40", "3.14159" ];
const numbers = strings.map(Number);
console.log(numbers); // [ 20, 30, 40, 3.14159 ]