Skip to content

Commit

Permalink
Minor fix in 5th chapter exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
anikeef authored Jan 12, 2022
1 parent c5844c2 commit ead82eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch05.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ Refactor `fastestCar` using `compose()` and other functions in pointfree-style.
{% initial src="./exercises/ch05/exercise_c.js#L4;" %}
```js
const fastestCar = (cars) => {
const sorted = sortBy(car => car.horsepower);
const sorted = sortBy(car => car.horsepower, cars);
const fastest = last(sorted);
return concat(fastest.name, ' is the fastest');
};
Expand Down

0 comments on commit ead82eb

Please sign in to comment.