Using javascript map with a function that has two arguments

前端 未结 0 1460
有刺的猬
有刺的猬 2020-12-23 03:14

I know that I can use map with a function of one variable in the following manner:

var squarefunc = function(x) {
    return x*x;
};
values = [1         


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