chris-ELM
7/28/2017 - 7:11 PM

Array map reference

Array map reference

  var numbers = [2,5,10];
        var dob = function (i){
            return i*2;
        }
        var res = numbers.map(dob);
alert(res)