Using javascript map with a function that has two arguments

前端 未结 0 973
不知归路
不知归路 2020-12-23 03:30

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         


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