docs(filter): correct grammar

This commit is contained in:
davhojt 2022-06-15 23:26:35 +03:00 committed by Dav Hojt
parent 9d7f5e2abe
commit bb81c93c2b
1 changed files with 14 additions and 14 deletions

View File

@ -2,25 +2,25 @@
### Instructions
- Create a `filter` function that takes an array as first argument, a function as second,
and that works like the method [].filter
- Create a `reject` function that takes an array as first argument, a function as second,
and that works like the reject function from lodash.
Create the following functions, which each take an array as the first argument, and a function as the second argument.
- Create a `partition` function that takes an array as first argument, a function as second,
and that works like the partition function from lodash.
- `filter`: that works like the `[].filter` method.
- `reject`: that works like the `reject` function from lodash.
- `partition`: that works like the `partition` function from lodash.
### Code provided
> The provided code will be added to your solution, and does not need to be submitted.
```js
Array.prototype.filter = undefined
```
### Notions
- [devdocs.io/javascript/global_objects/array/filter](https://devdocs.io/javascript/global_objects/array/filter)
- [lodash.com/docs/4.17.15#reject](https://lodash.com/docs/4.17.15#reject)
- [lodash.com/docs/4.17.15#partition](https://lodash.com/docs/4.17.15#partition)
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
Array.prototype.filter = undefined
```