MCPcopy Create free account
hub / github.com/Wscats/vscode-explore / empty

Function empty

contributes/src/vs/base/common/iterator.ts:9–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8 const _empty: Iterable<any> = Object.freeze([]);
9 export function empty<T = any>(): Iterable<T> {
10 return _empty;
11 }
12
13 export function* single<T>(element: T): Iterable<T> {
14 yield element;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected