I know it's much more a Javascript question, but anyway...
Let's say I have this...
This is the structure of each datamap inside the array $weapons:
Let's say I have this...
(print: $weapons.join(", "))...and the weapons var is an array with datamaps, so if it has 2 objects, it will be printed as [object Map], [object Map]. How can I print a list of each object by one of its values inside a datamap, if possible?
This is the structure of each datamap inside the array $weapons:
(datamap: "Name","Hammer", "Description","Yeah, it's a hammer.", "slot","right_hand" )I want to produce a list of "Name"s...