Published
Edited
Nov 22, 2020
Importers
Insert cell
Insert cell
Insert cell
Node = {
const Node = S.object({
key: S.union([S.number(), S.string()]),
rank: S.optional(S.number()),
left: S.optional(S.lazy(() => Node)),
right: S.optional(S.lazy(() => Node)),
})
return Node
}
Insert cell
node = Node.create({ key: 1, left: Node.create({ key: 2 }) })
Insert cell
S.is(node, Node)
Insert cell
Insert cell
Insert cell
Insert cell
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