text: function inventory(data){
      let parseData = data.reduce((acc, heroString, i, arr) => {
          let [name, level, items] = heroString.split(' / ');
          acc.push({name, level: Number(level), items: items ? items.split(',').map(x => x.trim()) : []});
          return acc;
      }, []);
  
      console.log(JSON.stringify(parseData));
  }
  
  inventory(['Isacc / 25 / Apple, GravityGun',
  'Derek / 12 / BarrelVest, DestructionSword',
  'Hes / 1 / Desolator, Sentinel, Antara']
  );