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

Function removeNulls

api/src/utils/normalize.ts:151–154  ·  view source on GitHub ↗
(
  obj: T
)

Source from the content-addressed store, hash-verified

149 * @returns The input with nulls removed.
150 */
151export const removeNulls = <T extends Record<string, unknown>>(
152 obj: T
153): NoNullProperties<T> =>
154 pickBy(obj, value => value !== null) as NoNullProperties<T>;
155
156type NormalizedFile = {
157 contents: string;

Callers 4

normalizeChallengesFunction · 0.85
userPublicGetRoutesFunction · 0.85
getSessionUserHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected