Node 获取完整对象打印
const util = require("util");
const arr = [1, 2, [3, 4, [5, 6, [7, 8, [9, 10]]]]];
console.log(util.inspect(arr, { depth: null, colors: true }));
图片来源:https://github.com/lecepin/code-lab/tree/main/console (opens in a new tab)
const util = require("util");
const arr = [1, 2, [3, 4, [5, 6, [7, 8, [9, 10]]]]];
console.log(util.inspect(arr, { depth: null, colors: true }));
图片来源:https://github.com/lecepin/code-lab/tree/main/console (opens in a new tab)