We are now checking for the wanted statement, where if we encounter exactly or over 151 Pokemons, it would return early and safely.
Why Guard Statement is Bae
Raymond Chung
103

I don’t see how the two code samples are equivalent. You’re only checking one Pokédex in the second code sample.

Like what you read? Give Ian Macalinao a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.