mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-10 00:04:22 -05: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)
|
|
})
|
|
);
|