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

Function normalizeFlags

api/src/utils/normalize.ts:233–236  ·  view source on GitHub ↗
(
  flags: T
)

Source from the content-addressed store, hash-verified

231 * @returns Same object with boolean flags, defaulting to false.
232 */
233export const normalizeFlags = <T extends Record<string, boolean | null>>(
234 flags: T
235): DefaultToFalse<T> =>
236 mapValues(flags, flag => flag ?? false) as DefaultToFalse<T>;

Callers 4

normalizeProfileUIFunction · 0.85
normalize.test.tsFile · 0.85
userPublicGetRoutesFunction · 0.85
getSessionUserHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected