Mapping array inside another array using spread operator
I’m testing spread operator inside array to map another array values. Unfortunately, I have come up with weird behavior or I did it wrong. When I return 2 objects using map inside the array, it’s only returning the last object. Code below: const cats = ["Tom", "Ginger", "Angela"]; const array = [ // { //… Read More Mapping array inside another array using spread operator