diff --git a/subjects/filter/README.md b/subjects/filter/README.md index 76131b04..d4765be5 100644 --- a/subjects/filter/README.md +++ b/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)