We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15b1b55 commit 4592b19Copy full SHA for 4592b19
README.md
@@ -317,7 +317,7 @@ This is by far the most important rule in software engineering. When functions d
317
**Bad:**
318
319
```ts
320
-function emailClients(clients: Client) {
+function emailClients(clients: Client[]) {
321
clients.forEach((client) => {
322
const clientRecord = database.lookup(client);
323
if (clientRecord.isActive()) {
@@ -330,7 +330,7 @@ function emailClients(clients: Client) {
330
**Good:**
331
332
333
334
clients.filter(isActiveClient).forEach(email);
335
}
336
0 commit comments