MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getStringProperty

Function getStringProperty

common/src/util/analytics-sampling.ts:33–39  ·  view source on GitHub ↗
(
  properties: AnalyticsProperties,
  key: string,
)

Source from the content-addressed store, hash-verified

31type AnalyticsProperties = Record<string, unknown> | undefined
32
33function getStringProperty(
34 properties: AnalyticsProperties,
35 key: string,
36): string | undefined {
37 const value = properties?.[key]
38 return typeof value === 'string' && value.trim() ? value : undefined
39}
40
41function getPropertyUserId(properties: AnalyticsProperties): string | undefined {
42 const direct =

Callers 4

getPropertyUserIdFunction · 0.85
isFullTelemetryEnabledFunction · 0.85
getEventSampleRateFunction · 0.85
getSamplingKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected