Commit eaa3477
authored
Lower "bad example" count
-The section, "Use default arguments instead of short circuiting or conditionals"
originally had 2 "bad examples" and 1 "good example."
- This commit lowers the "bad examples" count from 2 -> 1.
- The 1st "bad example" demonstrated the "conditionals" approach to default values.
- The 2nd "bad example" demonstrated the "short-circuit" approach to default values.
- I decided to only show the "short-circuit" approach as the 1 bad example, since that's
what most people would use traditionally in ES5.
- Few people actually use the "conditionals" approach, so I felt that warning
against the "conditionals" approach was unnecessary.1 parent ac12cb8 commit eaa3477
1 file changed
+0
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | 176 | | |
190 | 177 | | |
191 | 178 | | |
| |||
0 commit comments