instead of my forEach you placed a map?
# codereview
o
instead of my forEach you placed a map?
a
yeah, I like this approach more than
forEach
, but both should work just fine and produce the same result