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

Function isString

shared/common-utils.ts:25–27  ·  view source on GitHub ↗
(x: any)

Source from the content-addressed store, hash-verified

23// POSSIBILITY OF SUCH DAMAGE.
24
25export function isString(x: any): x is string {
26 return typeof x === 'string' || x instanceof String;
27}
28
29// Object.keys is typed as returning :string[] for some reason
30// This util is for cases where the key is a union of a few possible keys and we

Callers 15

generateOutputFunction · 0.85
handleDisplayFunction · 0.85
categoryForCodeFunction · 0.85
themes.tsFile · 0.85
onThemeChangeMethod · 0.85
unwrapStringFunction · 0.85
parseMetaNodeMethod · 0.85
processFromFiltersMethod · 0.85
getMethod · 0.85
constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected