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

Function findChallengeIndex

curriculum/src/filter.ts:64–65  ·  view source on GitHub ↗
(challengeOrder: { id: string }[], id: string)

Source from the content-addressed store, hash-verified

62 }
63
64 const findChallengeIndex = (challengeOrder: { id: string }[], id: string) =>
65 challengeOrder.findIndex(challenge => challenge.id === id);
66
67 const filterChallengeOrder = (
68 challengeOrder: { id: string }[],

Callers 1

filterChallengeOrderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected