Im getting an error while testing the code which says array.reduce is not a function. I am not using any console.log also
return array.reduce(function(m