MCPcopy Index your code
hub / github.com/JavaScriptRegenerated/yieldparser / invert

Function invert

src/index.ts:169–179  ·  view source on GitHub ↗
(
  needle: {},
  iterable: ParseGenerator<Result>,
)

Source from the content-addressed store, hash-verified

167////////
168
169export function invert<Result = void>(
170 needle: {},
171 iterable: ParseGenerator<Result>,
172): string | null {
173 const result = invertInner(needle, iterable);
174 if (result !== null && result.type === 'done') {
175 return result.components.join('');
176 }
177
178 return null;
179}
180
181function invertInner<Result = void>(
182 needle: {},

Callers 1

routing.test.tsFile · 0.90

Calls 1

invertInnerFunction · 0.85

Tested by

no test coverage detected