From eb9966dc41c2526281e5e3f3524953597291510c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Sirois Date: Tue, 8 Oct 2019 23:05:20 -0400 Subject: [PATCH] content(resources): fix titles in js iterative-functional article --- src/content/resources/javascript/iterative-vs-functional.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/resources/javascript/iterative-vs-functional.md b/src/content/resources/javascript/iterative-vs-functional.md index 9180f60..90ef331 100644 --- a/src/content/resources/javascript/iterative-vs-functional.md +++ b/src/content/resources/javascript/iterative-vs-functional.md @@ -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.