how to print large array fully in chrome console?

前端 未结 3 1794
悲&欢浪女
悲&欢浪女 2021-02-02 06:43

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

> console.log(uniqueNames)

but the problem I come across is that after

<
3条回答
  •  离开以前
    2021-02-02 06:47

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

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

提交回复
热议问题