I want to print an array (uniqueNames) in the Chrome Console:

> console.log(uniqueNames)

but the problem I come across is that after

> ["Theodor", "Albertus", /* 95 other elements */ "Andreas", "Bernd", "Roland"…] <--- dots here

screenshot

How to print the full array like the first 100 elements? I want to copy it and use in another application. Or maybe it is possible to write this array from the Chrome Console to a file (also in one line, and not as whole log)?


To print the full array in the console you can do : console.log(JSON.stringify(uniqueNames))


just join all the elements, separated in string with "," :

uniqueNames.join("\",\"")

I was looking for console.table(array):

enter image description here