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

Function ParseInt

src/media-query.test.ts:29–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 : never;
28
29function* ParseInt() {
30 const isNegative: boolean = yield has('-');
31 const [stringValue]: [string] = yield /^\d+/;
32 return parseInt(stringValue, 10) * (isNegative ? -1 : 1);
33}
34
35interface MatchMediaContext {
36 mediaType: 'screen' | 'print';

Callers

nothing calls this directly

Calls 1

hasFunction · 0.90

Tested by

no test coverage detected