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

Function createSuperOrder

curriculum/src/super-order.ts:4–12  ·  view source on GitHub ↗
(superBlocks: string[])

Source from the content-addressed store, hash-verified

2import { SHOW_UPCOMING_CHANGES } from './config.js';
3
4export function createSuperOrder(superBlocks: string[]) {
5 const superOrder: { [sb: string]: number } = {};
6
7 superBlocks.forEach((superBlock, i) => {
8 superOrder[superBlock] = i;
9 });
10
11 return superOrder;
12}
13
14export function getSuperOrder(
15 superblock: string,

Callers 2

getSuperOrderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected