What is map in JavaScript ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

What is map in JavaScript ?

29th Aug 2019, 3:19 PM
Sanjay Kumar
Sanjay Kumar - avatar
2 Respostas
+ 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