Skip to content
Myr

index.html

This file

Path

index.html

23 lines · 530 bytes · HTML

Last changed by

feat: added first class support for `Map` and `Set`Michel Weststratebefore adoptionb6f1d40

History of this file

Take it

feat: added first class support for `Map` and `Set`Michel Weststratebefore adoptionb6f1d40

lines 1–23why, one step back
1<!DOCTYPE html>
2<html lang="en">3 <head>4 <meta charset="UTF-8" />5 <meta http-equiv="X-UA-Compatible" content="ie=edge" />6 <title>Test in Browser</title>7 <script src="https://cdn.jsdelivr.net/npm/object-assign-polyfill@0.1.0/index.min.js"></script>8 <script src="./dist/immer.umd.js"></script>9 </head>10 <body>11 <script>12 try {13 const result = immer.produce(new Map([[1, 2]]), function(draft) {14 draft.set(1, 3)15 })1617 console.log(result)18 } catch (err) {19 alert(err)20 }21 </script>22 </body>23</html>