You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

652 B

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

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