Somewhat related -- if you're lazy like me, you might use map() simply to act on each item in the array (ignoring the fact that map creates a returns a new array). Don't do that! Use forEach() 👍
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.