File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -761,8 +761,8 @@ functions can fill in the gaps by providing function values.
761761
762762Arrays 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
766766through a function is done with ` map ` . You can use ` reduce ` to combine
767767all the elements in an array into a single value. The ` some ` method
768768tests whether any element matches a given predicate function. And
You can’t perform that action at this time.
0 commit comments