While reading lodash source code, I saw:
this.__chain__ = !!chainAll;
Why would one use !!
on the chainAll
parameter?
I assume this is a safer way to detect falsy values or dealing w/ different JavaScript versions, but would like to know the scenario it protects.