10 examples of 'isnullorundefined' in JavaScript

Every line of 'isnullorundefined' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
30export function isNullOrUndefined(object: any) {
31 return object === null || object === undefined
32
33}
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code

13function isNullOrUndefined(v: any) {
14 return v === undefined || v === null;
15}
69function isNullOrUndefined(value) {
70 return value === null || value === undefined;
71}
48export function isNullOrUndefined(value: any) : value is null | undefined {
49 return isUndefined(value) || isNull(value);
50}
37export function isNullOrUndefined(value: any): boolean {
38 return value === undefined || value === null;
39}
1017function isNullOrUndefined (obj) {
1018 return !obj && (obj === null || typeof obj === 'undefined');
1019}
707function isNullOrUndefined(arg) {
708 return arg == null;
709}
436function isNullOrUndefined(x) {
437 return x === null || x === undefined;
438}
64export function isNotUndefined<T> (arg: T): arg is Exclude<T, undefined> {
65 return arg !== undefined
66}
67function isNullOrUndefinedOrEmpty(value: string): boolean {
68 return isNull(value) || isUndefined(value) || isEmpty(value);
69}

Related snippets