I want to print an array (uniqueNames) in the Chrome Console:
> console.log(uniqueNames)
but the problem I come across is that after
just join all the elements, separated in string with "," :
uniqueNames.join("\",\"")
I was looking for console.table(array):
To print the full array in the console you can do : console.log(JSON.stringify(uniqueNames))
console.log(JSON.stringify(uniqueNames))