MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / parseCount

Function parseCount

client/src/utils/session-storage.ts:1–2  ·  view source on GitHub ↗
(rawCount: string | null)

Source from the content-addressed store, hash-verified

1const parseCount = (rawCount: string | null) =>
2 rawCount == null ? 0 : parseInt(rawCount, 10);
3
4export const CURRENT_COUNT_KEY = 'session-completed-challenges';
5export const SAVED_COUNT_KEY = 'saved-session-completed-challenges';

Callers 2

getCurrentCountFunction · 0.85
getSavedCountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected