I am trying to created nested arrays linked together by a key in JSObjects.
I have my first array and then the second inside the first. This works, but it returns all objects from the second array. I want to link the second array based on a key that they have in common, so it nest only the data related to the first array.
array1:MySQLQquery.data.map
(i =>
({
item1: i.name.valueOf(),
item2: i.place.valueOf()