News for hackers. Stuff that matters.
Re:Click by thaumasiotes on Saturday March 20, 2021 @12:28PM (#26524194)
What was the original point?
Re:Click by lurn on Saturday March 20, 2021 @01:10PM (#26524471)
I think they’re only talking about JavaScript, in which case the forEach function doesn’t return anything. So you can do x.map(…).forEach(…) because map returns an array. But u can’t do x.forEach(…).map(…) Ur examples seem like they’re for a different language.