Skip to content

Commit

Permalink
fix(C1.12): missing param in code example (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricayanzon authored Jul 18, 2024
1 parent e15dea1 commit c236dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chapter1/12-writing-decent-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ JavaScript has drastically changed for the better in the past decade - there is
For example `getTaskTitlesByStatus` could be rewritten in a functional style:

```js
function getTaskTitlesByStatus(tasks) {
function getTaskTitlesByStatus(tasks, status) {
return tasks.filter((task) => task.status === status).map((task) => task.title);
}
```
Expand Down

0 comments on commit c236dee

Please sign in to comment.