Public
Edited
Aug 8, 2022
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
keys = ["a", "b", "c", "d"]
Insert cell
funcs = [
{ desc: "key in obj", op: (key, obj) => key in obj },
{ desc: "obj[k] == null", op: (key, obj) => obj[key] == null },
{ desc: "obj[k] === null", op: (key, obj) => obj[key] === null },
{ desc: "obj[k] == undefined", op: (key, obj) => obj[key] == undefined },
{ desc: "obj[k] === undefined", op: (key, obj) => obj[key] === undefined },
{ desc: "typeof obj[key]", op: (key, obj) => typeof obj[key] },
{ desc: "!!obj[key]", op: (key, obj) => !!obj[key] }
]
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