I learned something recently. Our code used to be peppered with this:
result = something.else || []
Or variations on the theme:
a_string = (something.else || []).join(',')
Turns out you can just
result = Array(something.else)
a_string = Array(something.else).join(',')
Minor convenience, but lovely nonetheless.
Hero image by F. Muhammad from Pixabay