Browse Source

docs(filter): correct grammar

1124-swap-args-test
davhojt 2 years ago committed by Dav Hojt
parent
commit
bb81c93c2b
  1. 22
      subjects/filter/README.md

22
subjects/filter/README.md

@ -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.
### Notions
- `reject`: that works like the `reject` function from lodash.
- [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)
- `partition`: that works like the `partition` function from lodash.
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
> 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)

Loading…
Cancel
Save