Three Reasons Why JavaScript forEach is Special
The other day, I found an interesting code snippet in the 'Spot The Bug' section of a Bytes newsletter. Can you spot it?
const getCapitalizedInitials = (name) =>
name
.trim()
.split(" ")
.forEach((name) => name.charAt(0))
.join("")
...
abinjohn.in4 min read