数组里的 string 转 int

['1','2','3'].map(Number)    // [1,2,3]
  等同于    
['1','2','3'].map((value, index, array) => Number(value, index, array))    // [1,2,3]

  

原文地址:https://www.cnblogs.com/lbx6935/p/14602972.html