content(resources): fix titles in js iterative-functional article

This commit is contained in:
Jean-Philippe Sirois
2019-10-08 23:16:39 -04:00
parent 12470f5572
commit eb9966dc41
@@ -180,7 +180,7 @@ for (let i = 0; users.length > i; i++) {
console.log(hasYoungUsers); // outputs true
```
## every
## Checking if all elements match a condition with `every()`
`every()` is similar to `some()`. The difference is that `some()` test if one or more of the items match. `every()` tests if every item in the array matches.
@@ -206,7 +206,7 @@ for (let i = 0; users.length > i; i++) {
console.log(allUsersAreOldEnough); // outputs false
```
## includes
## Checking if an array contains a value with `includes()`
The `includes()` function tests if the passed item exists inside the array. It returns a boolean value.