Hi all
Am struggling to merge two result arrays of species that I wish to display as a single list with no duplicates.
The resulting arrays are in this format:
0: {species_common: "Black Kite"}
1: {species_common: "White Stork"}
How would I go about merging both lists so I can display just the values like Black Kite, White Stork, etc in one list?
I have tried doing this
const object1 = [spcAtObsCommon];
const object2 = [spcAtISitesCommon];
const object3 = {...object1, ...object2 };
if I do a console.log(object3) all I see is the results from object2 in exactly the same format. What am I doing wrong? Any advice or pointers would be gratefully received.
Best,
Mark