diff --git a/README.md b/README.md index c766c25c..7ce2727e 100644 --- a/README.md +++ b/README.md @@ -81,3 +81,4 @@ This book would not have been possible for the several contributors that have gr * [rw251](https://www.github.com/rw251) - Proofreading * [jessmear](https://www.github.com/jessmear) - Proofreading and content suggestion * [pauldariye](https://www.github.com/pauldariye) - Proofreading and example edits +* [marwahaha](https://www.github.com/marwahaha) - Proofreading and fixing misinformation on `Set` diff --git a/book/003-complex-data-types.md b/book/003-complex-data-types.md index cbb03159..fbf04bb5 100644 --- a/book/003-complex-data-types.md +++ b/book/003-complex-data-types.md @@ -261,12 +261,13 @@ Under the hood, if an object has no more references pointing to it, it will be c # Set and WeakSet -Set and WeakSet are identical to Map, except for 2 major differences: +Set and WeakSet are identical to Map, except for a few major differences: -1. Instead of `.set` for values, you use `.add()` to create a key value pair to store. -2. All values in a `Set` must be unique and only occur once. +1. `Set` is a store of just `values` - not `key-value pairs` like in `Map`. +2. Instead of `.set` for values, you use `.add()` to store a value. +3. All values in a `Set` must be unique and only occur once. -As far as everything else, they are very identical and are ordered. +As far as everything else, they are very identical, including being **ordered by insertion**. If you need a `Map`-like storage or cache, but all values must be unique, then `Set` is *perfect*! diff --git a/book/008-Modern-JS-Architecture.md b/book/008-Modern-JS-Architecture.md index c79e45fe..8e808ee0 100644 --- a/book/008-Modern-JS-Architecture.md +++ b/book/008-Modern-JS-Architecture.md @@ -23,7 +23,7 @@ There's 3 major aspects of a modern front end system: # Task runners -Back in the ancient JavaScript civilizations of 2013, brave warrior and huntress tribes of developers used `grunt` to start automating repetitive and menial tasks. +Back in the ancient JavaScript civilizations of 2013, brave tribes of developers used `grunt` to start automating repetitive and menial tasks. With the advent of Node.js, there were more and more tools that started appearing in the JavaScript ecosystem. We were able to use the command line to: diff --git a/src/pages/index.js b/src/pages/index.js index 714cbcd2..dcb50cb8 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -79,6 +79,9 @@ const IndexPage = (): Node => {
  • pauldariye - Proofreading and example edits
  • +
  • + marwahaha - Proofreading and fixing misinformation on Set. +
  • ); diff --git a/stylesheet.css b/stylesheet.css index 3921567f..df971377 100644 --- a/stylesheet.css +++ b/stylesheet.css @@ -627,7 +627,7 @@ pre tt:after { .container { position: relative; margin: 0 auto; - max-width: 992px; + max-width: 680px; /* For typograpy! */ padding: 0px 1.0875rem 1.45rem; padding-top: 0; }