Published unlisted
Edited
Dec 12, 2019
Importers
1 star
Insert cell
Insert cell
function ugly() {
return thing();
}
Insert cell
function thing() {
null.length; // throws
}
Insert cell
ugly()
Insert cell
Insert cell
{
try {
ugly();
} catch (e) {
return show_stack(e);
}
}
Insert cell
Insert cell
import { ugly as ugly_imported } from "065fdeb6e6255e39"
Insert cell
ugly_imported()
Insert cell
{
try {
ugly_imported();
} catch (e) {
return show_stack(e);
}
}
Insert cell
function show_stack(e) {
return `${e.stack.replace(/https:..(static|api)\.obser[^:]*/g, "")}`;
}
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