Published
Edited
Nov 25, 2021
Insert cell
Insert cell
Insert cell
add_y_is_2 = Immer.produceWithPatches({}, (obj) => {
obj.y = 2;
})[1]
Insert cell
_also_add_y_is_2 = Immer.produceWithPatches({}, (x) => {
Immer.applyPatches(x, add_y_is_2);
})
Insert cell
also_add_y_is_2 = _also_add_y_is_2[1]
Insert cell
reverse_add_y_is_2 = _also_add_y_is_2[2]
Insert cell
_.isEqual(also_add_y_is_2, add_y_is_2)
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