8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
_.isNotNill
_.isTruthy
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I work on react code a lot. and we often do !_.isNil(someState) && <div>my jsx</div>.
!_.isNil(someState) && <div>my jsx</div>
This is a little annoying to write and is a double negative. It's used a lot in react apps. and its an extra mental gymnastic
The text was updated successfully, but these errors were encountered:
Why not use !!someState && <div>my jsx</div> or Boolean(someState) && <div>my jsx</div>?
!!someState && <div>my jsx</div>
Boolean(someState) && <div>my jsx</div>
Sorry, something went wrong.
Those don't fly in typescript
Is this issue still open?
No branches or pull requests
I work on react code a lot. and we often do
!_.isNil(someState) && <div>my jsx</div>
.This is a little annoying to write and is a double negative. It's used a lot in react apps. and its an extra mental gymnastic
The text was updated successfully, but these errors were encountered: