import data from "./data.json" ; import { IDataUpgrade } from "./interfaces" ; const UPGRADES_BY_NAME = { } ; data . Upgrade . forEach ( ( upgrade ) => { UPGRADES_BY_NAME [ upgrade . name ] = upgrade ; } ) ; export default UPGRADES_BY_NAME ;