Is, this way to map an array, functional programmimg, mumble jumbo, or, could have some application?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Is, this way to map an array, functional programmimg, mumble jumbo, or, could have some application?



It appears that all this code does is to add a number value '100'
to each of the elements in the array, Am I missing something?


let ray = [10, 20, 30];

function demo(arg1, arg2){
return arg1.call(this, function(ele){return ele + arg2;});
}

let resultarr = demo.call(ray, Array.prototype.map, 100);
console.log(resultarr);









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Stripe::AuthenticationError No API key provided. Set your API key using “Stripe.api_key = ”

CRM reporting Extension - SSRS instance is blank

Keycloak server returning user_not_found error when user is already imported with LDAP