I have a MapTag that looks like this:
- definemap planetdetails:
pigstep:
name: Pigstep
cost: 0
earth:
name: Earth
cost: 600000
mars:
name: Mars
cost: 1500000
gemstone:
name: Gemstone
cost: 2000000
zoron:
name: Zoron
cost: 2800000
How would I go about mapping this for usage in tab completions (turned into Pigstep|Earth|Mars|Gemstone|Zoron?
Something like this JS equivalent:
Object.values(planetsdetails).map(planet => planet.name);
Greatly appreciate the help, thanks!