Documentation for IsTruthy/IsFalsy is wrong.
See original GitHub issueDescribe the bug
IsTruthy
’s doc comment says it implements JS ==
and IsFalsy
’s says it implements JS’s !=
.
Expected behavior:
I’d expect something mentioning JS coercion to boolean for IsTruthy
and maybe the !
operator for IsFalsy
. Consider a link to MDN articles on Truthy/Falsy, and maybe call out any surprising edge cases (.NET types that aren’t coerced, if they’re intentionally omitted).
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
8 Common Clinical Documentation Mistakes
Clinical documentation mistakes can lead to declining patient care and a lack of compliance within your practice. We discuss the most common ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Indeed! I haven’t had the time yet but plan on making one.
Hello @strout Can you please elaborate more on the issue (e.g. example, etc.) because I do not think I get it right? If this is bug what is wrong with the behavior?