From 885ce248a67ca13ecb01cde0571fdfab5e742e22 Mon Sep 17 00:00:00 2001 From: davhojt Date: Wed, 15 Jun 2022 02:09:21 +0300 Subject: [PATCH] docs(quantifiers): correct grammar --- subjects/quantifiers/README.md | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/subjects/quantifiers/README.md b/subjects/quantifiers/README.md index 081124745..8e84dc049 100644 --- a/subjects/quantifiers/README.md +++ b/subjects/quantifiers/README.md @@ -2,26 +2,22 @@ ### Instructions -Create three functions that receive an array and a function each: - -- `every` that returns true if every element of the array respects the - condition of the received function and false otherwise. -- `some` that returns true if at least one element of the array respects the - condition of the received function and false otherwise. -- `none` that returns true if none of the elements of the array respects the - condition of the received function and false otherwise. +Create these functions which receive an array and a function each. Each element will return `true` if +- `every`: every element in the array respects the condition of the function. +- `some`: that returns `true` if at least one element in the array respects the condition of the function. +- `none`: that returns `true` if **none** of the elements in the array respects the condition of the function. The use of `[].every` and `[].some` is forbidden for this exercise. +### Code provided + +> The provided code will be added to your solution, and does not need to be submitted. + +```js +Array.prototype.some = Array.prototype.every = undefined +``` + ### Notions - [devdocs.io/javascript/global_objects/array/some](https://devdocs.io/javascript/global_objects/array/some) - [devdocs.io/javascript/global_objects/array/every](https://devdocs.io/javascript/global_objects/array/every) - -### Code provided - -> all code provided will be added to your solution and doesn't need to be submited. - -```js -Array.prototype.some = Array.prototype.every = undefined -```