'Array.foreach() is not working - the foreach isn't executing

const loop2 = function (array, ElementOfArray ) { return arraynew }; let arraynew=loop([1,2,3]).forEach(function(element) { console.log(element); })



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source