docs(quantifiers): correct grammar

This commit is contained in:
davhojt 2022-06-15 02:09:21 +03:00 committed by Dav Hojt
parent a55edd12c8
commit 885ce248a6
1 changed files with 12 additions and 16 deletions

View File

@ -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
```