mirror of https://github.com/01-edu/public.git
docs(quantifiers): correct grammar
This commit is contained in:
parent
a55edd12c8
commit
885ce248a6
|
@ -2,26 +2,22 @@
|
||||||
|
|
||||||
### Instructions
|
### Instructions
|
||||||
|
|
||||||
Create three functions that receive an array and a function each:
|
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.
|
||||||
- `every` that returns true if every element of the array respects the
|
- `some`: that returns `true` if at least one element in the array respects the condition of the function.
|
||||||
condition of the received function and false otherwise.
|
- `none`: that returns `true` if **none** of the elements in the array respects the condition of the function.
|
||||||
- `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.
|
|
||||||
|
|
||||||
The use of `[].every` and `[].some` is forbidden for this exercise.
|
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
|
### Notions
|
||||||
|
|
||||||
- [devdocs.io/javascript/global_objects/array/some](https://devdocs.io/javascript/global_objects/array/some)
|
- [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)
|
- [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
|
|
||||||
```
|
|
||||||
|
|
Loading…
Reference in New Issue