This PR introduces the ability to properly handle null and undefined values as 2nd or later argument.
It filters the arguments, removing all, that are either null or undefined. Loose type comparison arg !== null is used. It works both for null and undefined, but returns false for arg = false
This PR introduces the ability to properly handle
null
andundefined
values as 2nd or later argument.It filters the arguments, removing all, that are either
null
orundefined
. Loose type comparisonarg !== null
is used. It works both fornull
andundefined
, but returnsfalse
forarg = false
See MDN page