Need further explaining with a specific situation of .reduce() method

后端 未结 0 1665
春和景丽
春和景丽 2020-12-29 03:29

So I have this simple function:

function(firstArray, secondArray) { return firstArray.map((x, y) => Math.abs(x - secondArray[y])).reduce((a, b) => a+b*b)/firstA

相关标签:
回答
  • 消灭零回复
提交回复
热议问题