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

Function isProjectBased

client/src/utils/curriculum-layout.ts:22–31  ·  view source on GitHub ↗
(
  challengeType: number,
  blockDashedName: unknown = null
)

Source from the content-addressed store, hash-verified

20];
21
22export const isProjectBased = (
23 challengeType: number,
24 blockDashedName: unknown = null
25) => {
26 // Is project based but should be collapsible, this differs from the
27 // other projects which are not collapsible.
28 if (blockDashedName === 'take-home-projects') return false;
29
30 return projectBasedChallengeTypes.includes(challengeType);
31};

Callers 4

getCurrentBlockIdsFunction · 0.90
renderMethod · 0.90
HotkeysFunction · 0.90
editorDidMountFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected