Published
Edited
Mar 4, 2022
Importers
37 stars
Insert cell
Insert cell
md`For example, this is my object:

${inspect({hello: ["world"]})}

There are many like it, but this one is mine.`
Insert cell
Insert cell
({hello: ["world"]})
Insert cell
inspect({hello: ["world"]})
Insert cell
Insert cell
function inspect(value) {
const root = document.createElement("DIV");
new Inspector(root).fulfilled(value);
const element = root.firstChild;
element.remove();
element.value = value; // for viewof
return element;
}
Insert cell
Inspector = (await import("https://cdn.skypack.dev/@observablehq/inspector@3")).Inspector
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more