Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on New Features in Ruby 2.4. Parent comment
An empty array is still an object, so tests to true. Similarly 0, etc.
The only false values are 'false', of course, and 'nil', the lack of anything.
An empty array is still an object, so tests to true. Similarly 0, etc.
The only false values are 'false', of course, and 'nil', the lack of anything.