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

Function getFirstQueryParam

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

Source from the content-addressed store, hash-verified

390};
391
392export const getFirstQueryParam = (
393 queryParam: string | string[] | undefined,
394): string | undefined =>
395 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