MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / splitIntoArray

Function splitIntoArray

lib/utils.ts:519–524  ·  view source on GitHub ↗
(input?: string, defaultArray: string[] = [])

Source from the content-addressed store, hash-verified

517
518// Splits a : separated list into its own array, or to default if input is undefined
519export function splitIntoArray(input?: string, defaultArray: string[] = []): string[] {
520 if (input === undefined) {
521 return defaultArray;
522 }
523 return input.split(':');
524}
525
526/***
527 * Absolute path to the root of the application

Callers 2

parseToolsMethod · 0.85
parseLibrariesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected