MCPcopy Create free account
hub / github.com/microsoft/vscode-cpptools / nullish

Method nullish

Extension/src/Utility/System/guards.ts:28–30  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

26 }
27
28 static nullish(value: any): value is null | undefined {
29 return value === null || value === undefined;
30 }
31
32 static promise(value: any): value is Promise<any> {
33 return isPromise(value) || (value && typeof value.then === 'function');

Callers 7

parentClassOfFunction · 0.80
getOrAddFunction · 0.80
iterableMethod · 0.80
asyncIterableMethod · 0.80
entriesMethod · 0.80
valuesMethod · 0.80
getOrAddMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected