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 for programmers to stay up-to-date, learn new skills, and share ideas.
We’ll never post without your permission.