But I like #zero?, and have found situations where x == 0 was not "working" and x.zero? was. Don't ask me what it was though – I can barely remember yesterday – but maybe someone can explain that.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
But I like
#zero?
, and have found situations wherex == 0
was not "working" andx.zero?
was. Don't ask me what it was though – I can barely remember yesterday – but maybe someone can explain that.