docs(mapper): correct grammar

This commit is contained in:
davhojt 2022-06-15 02:04:45 +03:00 committed by Dav Hojt
parent 75b096e5e7
commit a55edd12c8
1 changed files with 8 additions and 10 deletions

View File

@ -2,23 +2,21 @@
### Instructions
- Create a `map` function that takes an array as first argument, a function as second,
and that works like the method .map
- Create a `map` function that takes an array as the first argument, a function as second, and that works like the method `.map`
- Create a `flatMap` function that takes an array as first argument, a function as second,
and that works like the method .flatMap
### Notions
- [devdocs.io/javascript/global_objects/array/map](https://devdocs.io/javascript/global_objects/array/map)
- [devdocs.io/javascript/global_objects/array/flatmap](https://devdocs.io/javascript/global_objects/array/flatmap)
- Create a `flatMap` function that takes an array as the first argument, a function as second, and that works like the method `.flatMap`
### 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.map = undefined
Array.prototype.flatMap = undefined
Array.prototype.flat = undefined
```
### Notions
- [devdocs.io/javascript/global_objects/array/map](https://devdocs.io/javascript/global_objects/array/map)
- [devdocs.io/javascript/global_objects/array/flatmap](https://devdocs.io/javascript/global_objects/array/flatmap)