Create New Array From Existing Javascript Map Vs Foreach