how to print large array fully in chrome console?

前端 未结 3 1858
悲&欢浪女
悲&欢浪女 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 07:08

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

提交回复
热议问题