If you only want to translate(map) each element in to another set of value, using Map is much more simpler and readable than forEach
forEach is much more indicative of what you're actually doing here, which is running through an iterable and mutating properties on each node.
Simple rule of thumb: if you're not using the results of `map`, you shouldn't be using it.
As for simple/readable it’s the same code but s/map/forEach.