Platform
Resources
Pricing
Sign in
Get started
Michiel Dral
I don't actually know how to program I just ask @FransAris
Workspace
Fork
Published
By
Michiel Dral
Edited
Mar 2, 2021
Insert cell
Insert cell
Insert cell
{
let
x
=
[
1
,
2
,
3
]
;
let
[
result
,
patches
]
=
immer
.
produceWithPatches
(
x
,
x
=>
{
x
.
unshift
(
0
)
;
}
)
;
return
patches
;
}
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
immer
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML