Update 02-$state.md

Fix what I think is probably a typo in the destructuring explanation
pull/16047/head
Miguel Alejandro Martín 4 months ago committed by GitHub
parent 54990f2329
commit 0d34c306d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -59,8 +59,8 @@ let todos = [{ done: false, text: 'add more todos' }];
// ---cut--- // ---cut---
let { done, text } = todos[0]; let { done, text } = todos[0];
// this will not affect the value of `done` // this will not affect the value of `done` within the actual item in the array
todos[0].done = !todos[0].done; done = !done;
``` ```
### Classes ### Classes

Loading…
Cancel
Save