Ideally, you shouldn't modify the original array at all. Funtional programming encourages immutability. From a strictly functional perspective you should really only use forEach() for IO operations, like changing the DOM.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.