In JS, if I log a string to the console it is not showing properly ?
console.log(uniqueProducts); // console.log(\"uniqueProducts:\"+uniqueProducts);
+ concatenates strings but object is not a string.
+
strings
object
Use console.dir(obj) to display the content of the object.
console.dir(obj)