Skip to content

Commit 0b2336a

Browse files
committed
Clean up sentence in Chapter 5
1 parent fe56859 commit 0b2336a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

05_higher_order.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,8 +761,8 @@ functions can fill in the gaps by providing function values.
761761

762762
Arrays provide a number of useful higher-order methods. You can use
763763
`forEach` to loop over the elements in an array. The `filter` method
764-
returns a new array with the elements that didn't pass the ((predicate
765-
function)) filtered out. Transforming an array by putting each element
764+
returns a new array containing only the elements that pass the
765+
((predicate function)). Transforming an array by putting each element
766766
through a function is done with `map`. You can use `reduce` to combine
767767
all the elements in an array into a single value. The `some` method
768768
tests whether any element matches a given predicate function. And

0 commit comments

Comments
 (0)