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

Function getFirstQueryParam

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

Source from the content-addressed store, hash-verified

379};
380
381export const getFirstQueryParam = (
382 queryParam: string | string[] | undefined,
383): string | undefined =>
384 Array.isArray(queryParam) ? queryParam[0] : queryParam;

Callers 7

CreatePostFunction · 0.90
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