showing results for - "javascript map callback function"
Paolo
24 Jul 2017
1function doOpSingle2(arrelem,flag)
2{
3 // do something with one array element
4}
5
6var A = ["one", "two", "three", "four"];
7var theFlag = util.getMask(); // call external function
8var y = A.map(doOpSingle2(theFlag)); // this does not work!