Closed TommySorensen closed 1 year ago
It wouldn’t show up with false, so here !!someOtherThing is evaluating to true. And “undefined” is always a string when used as a key name. See #40 for more explanation — it’s native JS and is due to the [undefined]: true
syntax
Is there any plans for supporting this use case?
Will return
undefined
which is unwanted.Im using clsx in a React.js solution with CSS Modules like this:
In this case
someOtherThing
can be undefined or null and since i am doing!!someOtherThing
then clsx should never return the "undefined" value.