0
0

More than 1 year has passed since last update.

検証ツールでconsole.table()を使ってみた

Posted at

検証ツールにて、console.log() は頻繁に使うと思います。

むしろそれ以外使うのって感じですよね。

今回は、console.table() を紹介します。

console.table()とは?

引数に配列やオブジェクトを入れると見やすい形に整形してくれます。

const fruits = [
  {name: "Apple", price: 100},
  {name: "Orange", price: 150},
  {name: "Strawberry", price: 200},
];
console.table(fruits);

スクリーンショット 2023-02-12 23.36.20.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0