Download wp-calypso/packages/data-stores/src/plans/test-utils/index.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 255 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/plans/test-utils/index.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/data-stores/src/plans/test-utils/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/plans/test-utils/index.ts
255 Bytes
| import type { PlanFeature } from '../types'; | |
| export const buildPlanFeaturesDict = ( | |
| planFeatures: PlanFeature[] | |
| ): Record< string, PlanFeature > => | |
| planFeatures.reduce( | |
| ( dict, feature ) => ( { | |
| ...dict, | |
| [ feature.id ]: feature, | |
| } ), | |
| {} | |
| ); | |