Skip to content

Commit

Permalink
remove push
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyumih committed Jan 11, 2024
1 parent 64190eb commit 6cab2a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mutable/demo/demo.view.tree
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
$mol_mutable_demo $mol_example_code
code? \
\const person = [777, {id: '10', name: 'Jhon'}, false]
\const person = [{id: '10', name: 'Jhon'}, false]
\
\const mut = $mol_mutable(person)
\
\mut[1].id(v => '42')
\mut().push('Online')
\mut[1].name(() => 'Dave')
\mut[1].name(() => 'Dave')
\mut[2]((v) => !v)
\
\const next = mut()
Expand Down

0 comments on commit 6cab2a9

Please sign in to comment.