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.

isNull or isNullOrUndef

See original GitHub issue

I noticed you have a function called isNull that checks if the argument is null or undefined. Seems like it should be named something more generic like isNulish or like Inferno uses, IsNullOrUndef. A rose by any other name would be just as null, he he. 😌

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
rbiggscommented, Jul 4, 2018

Well, but Inferno uses all three, depending what it’s doing. By the way folks, JSPerf is showing its age. It hasn’t been maintained well since it launched 10 years ago and is getting creaking. @jorgebucaran, here’s a modern, well-maintained alternative: MeasureThat. Happy perfing! There’s also jsbenchmarks, but I haven’t really used it before.

Forgot to mention, JSPerf and others are based on BenchMarkJS, which you could use to set up your own perf, petal to the metal. And, be aware that any perfing tool will face perf challenges.

1reaction
mindplay-dkcommented, Jul 4, 2018

I’m with @frenzzy on this one: value == null is idiomatic Javascript for “is null or undefined”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

what is the alternative for the util.isNullOrUndefined(object) in ...
isNullOrUndefined(object) has been depreciated and I cannot find any alternative for it. Can someone point out a feasible alternative for it? if ...
Read more >
How to use the core-util-is.isNullOrUndefined function ... - Snyk
To help you get started, we've selected a few core-util-is.isNullOrUndefined examples, based on popular ways it is used in public projects.
Read more >
util.isNullOrUndefined JavaScript and Node.js code examples
Best JavaScript code snippets using util.isNullOrUndefined(Showing top 3 results out of 315) ... Why developers prefer Tabnine over GitHub Copilot? Learn More.
Read more >
Replace isNullOrUndefined() · Issue #4 · Mondei1/DocSort
isNullOrUndefined is deprecated (https://nodejs.org/api/util.html#util_util_isnullorundefined_object). Instead we should use obj == null ...
Read more >
util.isNullOrUndefined() - w10schools
Returns true if the given "object " is null or undefined . Otherwise, returns false . 1. 2. 3. 4. 5. 6. 7....
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