We're a place where coders share, stay up-to-date and grow their careers.
I've actually never used a for loop in ruby. It is most conventional to loop over an enumerable using something like .each
.each
Thanks for the note! 🙏🏻 It's actually even discouraged in Rubocop style guide. 😳 I'll update the post :)
I've actually never used a for loop in ruby. It is most conventional to loop over an enumerable using something like
.each
Thanks for the note! 🙏🏻
It's actually even discouraged in Rubocop style guide. 😳
I'll update the post :)