mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-10 04:00:52 -04:00
10 lines
214 B
JavaScript
10 lines
214 B
JavaScript
import flowRight from 'lodash/flowRight';
|
|
import { createNameIdMap } from '../../utils/map.js';
|
|
|
|
export const shapeChallenges = flowRight(
|
|
entities => ({
|
|
...entities,
|
|
...createNameIdMap(entities)
|
|
})
|
|
);
|