How it works...

The map works similarly to several of the other methods we've seen so far. It takes a function that receives an array element as a parameter and returns some value. Those values are collected into a new array, and that new array is returned by the map method.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.43.253