DEV Community


Discussion on: Writing Clean Code

gonedark profile image
Jason McCreary Author

You're right. I corrected the initial examples.

As far as the null check, it is indeed missing. But to your point, adding it would alter the existing behavior. I have left it off for simplicity.