Commit 9272fa2
Improvement on email client function
In the section "Functions should do one thing" this change uses
the Array.filter method to get the active clients, then emailing
those with the forEach loop.1 parent 509260b commit 9272fa2
1 file changed
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
286 | 280 | | |
287 | 281 | | |
288 | 282 | | |
| |||
0 commit comments