Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 59bc2d0

Browse files
Update README.md
updating function name per ryanmcdermott#200 thanks to @marzelin to clean up some issues
1 parent 2ff9c4f commit 59bc2d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,13 +273,13 @@ function emailClients(clients) {
273273

274274
**Good:**
275275
```javascript
276-
function emailClients(clients) {
276+
function emailActiveClients(clients) {
277277
clients
278-
.filter(isClientActive)
278+
.filter(isActive)
279279
.forEach(email);
280280
}
281281

282-
function isClientActive(client) {
282+
function isActive(client) {
283283
const clientRecord = database.lookup(client);
284284
return clientRecord.isActive();
285285
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /