MCPcopy Index your code
hub / github.com/freeCodeCamp/freeCodeCamp / getPoints

Function getPoints

api/src/utils/progress.ts:32–36  ·  view source on GitHub ↗
(
  progressTimestamps: ProgressTimestamp[] | null
)

Source from the content-addressed store, hash-verified

30 * @returns The number of points.
31 */
32export const getPoints = (
33 progressTimestamps: ProgressTimestamp[] | null
34): number => {
35 return progressTimestamps?.length ?? 1;
36};

Callers 6

progress.test.tsFile · 0.85
userPublicGetRoutesFunction · 0.85
challengeRoutesFunction · 0.85
getSessionUserHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected