MCPcopy Index your code
hub / github.com/formatjs/formatjs / stringArray

Function stringArray

tools/release-please/npm-workspace-graph.ts:54–59  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

52}
53
54function stringArray(value: unknown): string[] {
55 if (!Array.isArray(value)) {
56 return []
57 }
58 return value.filter((entry): entry is string => typeof entry === 'string')
59}
60
61export function normalizePackage(pkg: unknown): WorkspacePackage {
62 if (!pkg || typeof pkg !== 'object') {

Callers 1

normalizePackageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected