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
30export function isNullOrUndefined(object: any) {
31 return object === null || object === undefined
32
33}
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 (arg: T): arg is Exclude {
65 return arg !== undefined
66}
67function isNullOrUndefinedOrEmpty(value: string): boolean {
68 return isNull(value) || isUndefined(value) || isEmpty(value);
69}

Related snippets