MCPcopy Index your code
hub / github.com/actions/github-script / parseNumberArray

Function parseNumberArray

src/retry-options.ts:46–53  ·  view source on GitHub ↗
(listString: string)

Source from the content-addressed store, hash-verified

44}
45
46export function parseNumberArray(listString: string): number[] {
47 if (!listString) {
48 return []
49 }
50
51 const split = listString.trim().split(',')
52 return split.map(x => parseInt(x))
53}

Callers 1

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected