MCPcopy Create free account
hub / github.com/dailydotdev/apps / getFirstQueryParam

Function getFirstQueryParam

packages/shared/src/lib/func.ts:367–370  ·  view source on GitHub ↗
(
  queryParam: string | string[] | undefined,
)

Source from the content-addressed store, hash-verified

365};
366
367export const getFirstQueryParam = (
368 queryParam: string | string[] | undefined,
369): string | undefined =>
370 Array.isArray(queryParam) ? queryParam[0] : queryParam;

Callers 6

SquadAnalyticsPageFunction · 0.90
getServerSidePropsFunction · 0.90
getServerSidePropsFunction · 0.90
AiFluencyQuizPageFunction · 0.90
sanitizeParamFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected