question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation for IsTruthy/IsFalsy is wrong.

See original GitHub issue

Describe 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:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stroutcommented, Sep 10, 2021

Indeed! I haven’t had the time yet but plan on making one.

1reaction
oformaniukcommented, Sep 9, 2021

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found