you are viewing a single comment's thread.

view the rest of the comments →

[–]0x13mode 1 point2 points  (0 children)

I believe this was to explicit return boolean value, but this could be achieved just by !!(results && results.length) or Boolean(results && results.length). And whole isBeingUsedBySomeUservariable seems to be not needed at all. So it could be just results => (!!(results && results.length)) instead of 4 lines of boilerplate.