public/subjects/mapper
xpetit def316d0f3
Reformat markdown (with prettier)
2021-04-27 21:04:54 +02:00
..
README.md Reformat markdown (with prettier) 2021-04-27 21:04:54 +02:00

README.md

Mapper

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 flatMap function that takes an array as first argument, a function as second, and that works like the method .flatMap

Notions

Code provided

all code provided will be added to your solution and doesn't need to be submited.

Array.prototype.map = undefined
Array.prototype.flatMap = undefined
Array.prototype.flat = undefined