Discuss / JavaScript / 不懂这个箭头语法,回头再看M

不懂这个箭头语法,回头再看M

Topic source

梦炸

#1 Created at ... [Delete] [Delete and Lock User]

最后一题: //r =arr.map(function(value) {return parseInt(value)}) // Same as above, but using the concise arrow function syntax r = ['1', '2', '3'].map( str => parseInt(str) );


  • 1

Reply