DEV Community

Javascript map()method

talent on May 26, 2022

💡 𝟯 𝗺𝗮𝗶𝗻 𝘂𝘀𝗲-𝗰𝗮𝘀𝗲𝘀 𝗼𝗳 𝗺𝗮𝗽( ) 𝗺𝗲𝘁𝗵𝗼𝗱 ✔️ 𝘜𝘴𝘦𝘥 𝘧𝘰𝘳 𝘳𝘦𝘯𝘥𝘦𝘳𝘪𝘯𝘨 𝘢 𝘭𝘪𝘴𝘵 𝘰𝘧 𝘥𝘢𝘵𝘢 𝘵𝘰 𝘵𝘩𝘦 𝘋𝘰𝘮 𝘪𝘯 𝘙𝘦𝘢𝘤𝘵 ✔️𝘜𝘴𝘦𝘥 𝘵𝘰 𝘮𝘰𝘥𝘪𝘧𝘺 𝘢𝘯 𝘦𝘭𝘦𝘮𝘦𝘯𝘵 𝘪𝘯 𝘢𝘳𝘳𝘢𝘺 𝘥𝘦𝘱𝘦𝘯𝘥𝘪𝘯𝘨 𝘰𝘯 𝘴𝘰...
Collapse
 
tracygjg profile image
Tracy Gilmore

To clarify, you are referencing the Array.map method, not to be confused with the JavaScript Map data type, See MDN.

Collapse
 
talenttinaapi profile image
talent

@tracygjg yes indeed that is correct, thanks for the clarification

Collapse
 
andrewbaisden profile image
Andrew Baisden

I find myself using the code a lot.