What is map in JavaScript ? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

What is map in JavaScript ?

29th Aug 2019, 3:19 PM
Sanjay Kumar
Sanjay Kumar - avatar
2 ответов
+ 4
The map() method creates a new array with the result of calling a function of every array elements.
29th Aug 2019, 4:41 PM
Jella
Jella - avatar
+ 3
The map object holds key-value pairs and remembers the original insertion order of the keys. Any value may be used as either a key or a value
29th Aug 2019, 3:58 PM
Leibniz
Leibniz - avatar