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

Function saveCurrentCount

client/src/utils/session-storage.ts:20–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 * Saves the current count so we can compare it later.
19 */
20export const saveCurrentCount = () => {
21 sessionStorage.setItem(SAVED_COUNT_KEY, getCurrentCount().toString());
22};
23
24const isSaved = () => sessionStorage.getItem(SAVED_COUNT_KEY) !== null;
25

Callers 1

Calls 1

getCurrentCountFunction · 0.85

Tested by

no test coverage detected