isNull or isNullOrUndef
See original GitHub issueI 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:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top 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 >
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
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.
I’m with @frenzzy on this one:
value == null
is idiomatic Javascript for “is null or undefined”.