MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / asyncIterable

Method asyncIterable

Extension/src/Utility/System/guards.ts:40–42  ·  view source on GitHub ↗
(instance: any)

Source from the content-addressed store, hash-verified

38 }
39
40 static asyncIterable(instance: any): instance is AsyncIterable<unknown> {
41 return !is.nullish(instance) && !!instance[Symbol.asyncIterator];
42 }
43
44 static Constructor(instance: any): instance is Constructor {
45 return typeof instance === 'function' && !!instance.prototype && !Object.getOwnPropertyNames(instance).includes('arguments') && instance.toString().match(/^function.*\{ \[native code\] \}|^class/g);

Callers 2

foreachFunction · 0.80
asyncOfFunction · 0.80

Calls 1

nullishMethod · 0.80

Tested by

no test coverage detected